Hightlights
signed
. Signals with signed
will be considered as a signed number during operations (+
, -
…).sigend
configuration. It may be helpful for you to learn Logic Design.Y
is a negative number by Y[31] == 1'b1
, or simply Negative = Y[31]
.We highly recommend to read our testbench. It will help you to learn Verilog.
unsigned_test
is a task which generates 2**5 testcases and check the answers.change_sel
increases the sel
signal. (sel = sel + 1
).According to the description:
Please design a latch module (fig. 1) and implement a clk positive edge trigger flip-flop (fig. 2).
You have to design a latch and a D-flip-flop.
Most of students did not design a "correct" latch and did not follow the circuits we gave. That's why they failed.
We will use our testbench(not released one) to verify your design. That means, passing the released testbench does not represent you can get full scores in this question.
I suggest to use gate-level description to do this question. (It may be much easy and stable.)
..
Re-use the template from As4 part2.