Question: a . Show the hardware that will be inferred for the base case ( n = = 1 ) shown above. b . Show the

a. Show the hardware that will be inferred for the base case (n==1) shown above.
b. Show the hardware after optimization and for the default value of wn.
typedef enum logic [3:0]
{ Char_Blank =0, Char_Dot =1,
Char_Open =2, Char_Close =3,
Char_Open_Okay =4, Char_Close_Okay =5} Char;
module pmatch_mark
#( int n =5, wn = $clog2(n+1))
( output logic [wn-1:0] left_out_n_unmat_close, right_out_n_unmat_open,
output uwire [3:0] str_marked [0:n-1],
input uwire [wn-1:0] left_in_n_unmat_open, right_in_n_unmat_close,
input uwire [3:0] str [0:n-1]);
if ( n ==1) begin
assign left_out_n_unmat_close = str[0]== Char_Close;
assign right_out_n_unmat_open = str[0]== Char_Open;
assign str_marked[0]=
str[0]== Char_Close && left_in_n_unmat_open ? Char_Close_Okay :
str[0]== Char_Open && right_in_n_unmat_close ? Char_Open_Okay :
str[0];
a . Show the hardware that will be inferred for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!