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 In this module the number of bits in the connections carrying parentheses counts is hardcoded to Though the hardware is correct for n 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 the nonbase case That is dont show the hardware computing leftoutnunmatclose and rightoutnunmatopen.
a Show the inferred hardware at one level for n
module pmatchmarkbig # int n wn
output logic wn: leftoutnunnatclose, rightoutnunnatopen,
output uwire : strmarked :n
input uwire wn: leftinnunnatopen, rightinnunmatclose,
input uwire : str :n;
if n begin
assign leftoutnunmatclose str CharClose;
assign rightoutnunmatopen str CharOpen;
assign strmarked
str CharClose leftinnunnatopen CharCloseOkay :
str CharOpen ltclose : ltclose delta;
rightoutnunmatopen delta rtopen : rtopen delta;
end
end
endmodule
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
