Question: Problem 2 . In this module the number of bits in the connections carrying parentheses counts is hardcoded to 8 . Though the hardware is

Problem 2. In this module the number of bits in the connections carrying parentheses counts is hardcoded to 8. Though the hardware is correct for n 256 it is more costly and slower than it needs to be. But for this problem its good enough. Show the hardware that will be inferred for this module for n >1(the non-base case). That is, dont show the hardware computing left_out_n_unmat_close and right_out_n_unmat_open.
a. Show the inferred hardware at one level for n >1.
module pmatch_mark_big #( int n -5, wn -8)
( output logic [wn-1:0] left_out_n_unnat_close, right_out_n_unnat_open,
output uwire [3:0] str_marked [0:n-1],
input uwire [wn-1:0] left_in_n_unnat_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_unnat_open ? Char_Close_Okay :
str[0]=- Char_Open =0? lt_close : lt_close - delta;
right_out_n_unmat_open = delta 0? rt_open : rt_open + delta;
end
end
endmodule
Problem 2 . In this module the number of bits in

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!