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 shown above.
b Show the hardware after optimization and for the default value of wn
typedef enum logic :
CharBlank CharDot
CharOpen CharClose
CharOpenOkay CharCloseOkay Char;
module pmatchmark
# int n wn $clogn
output logic wn: leftoutnunmatclose, rightoutnunmatopen,
output uwire : strmarked :n
input uwire wn: leftinnunmatopen, rightinnunmatclose,
input uwire : str :n;
if n begin
assign leftoutnunmatclose str CharClose;
assign rightoutnunmatopen str CharOpen;
assign strmarked
str CharClose && leftinnunmatopen CharCloseOkay :
str CharOpen && rightinnunmatclose CharOpenOkay :
str;
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
