In this lab, using the library of basic logic gates you created in Lab 1, you will structurally and behaviorally design a 3x8 decoder using Verilog. After this lab, you should be able to understand the difference between a structural and behavioral design and have insight into when to use each of these design specification techniques.
The following provides the steps that you must follow to complete this lab.
module decoder3x8_struct(i2, i1, i0, e, d7, d6, d5, d4, d3,
d2, d1, d0);
input i2, i1, i0, e;
output d7, d6, d5, d4, d3, d2, d1, d0;
// you code goes here
endmodule
module decoder3x8_bhv(i2, i1, i0, e, d7, d6, d5, d4, d3, d2,
d1, d0);
input i2, i1, i0, e;
output d7, d6, d5, d4, d3, d2, d1, d0;
reg d7, d6, d5, d4, d3, d2, d1, d0;
always @(i2, i1, i0, e) begin
// your code goes here
end
endmodule
You must demo the following aspects or your decoder designs to the TA.
In addition to the standard lab report format, you must submit the following information.