Write three modules named lt2fun1 , lt2fun and lt2test . Module lt2fun1 has an output F and three inputs a , b and c all of them 1 bit. The output F = a' b' + c . Use an always to implement it. The...

1 answer below »
Write three modules named
lt2fun1,
lt2fun
and
lt2test. Module
lt2fun1
has an output
F
and three inputs
a,
b
and
c
all of them 1 bit. The output
F = a' b' + c. Use an
always
to implement it. The second module has the same inputs and output but now they are
WIDTH
bits wide. It instantiates several modules to implement its functionality, ie the output is still
F = a' b' + c
where the AND and OR operations are bitwise. Finaly, write a test module
lt2test
to test
lt2fun. The test module should have a parameter TSTWIDTH, which is used as parameter to
lt2fun. Generate 20 sets of random inputs
a,
b
and
c
with the help of a loop and for each print either
PASS
or
FAIL, the values of
a,
b
and
c
. followed by the value of
F. Name the file
lt2fun.v.

Answered Same DayApr 07, 2022

Answer To: Write three modules named lt2fun1 , lt2fun and lt2test . Module lt2fun1 has an output F and three...

Sathishkumar answered on Apr 07 2022
96 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here