Professional Documents
Culture Documents
Lab 1: Building Hierarchy: INP (0) INP
Lab 1: Building Hierarchy: INP (0) INP
U0
MY_AND2
OUT1
U1
SIG 2
U2
Figure 1
MY_AND2 U1 (.a (INP[2]), .b (INP[3]), .out (sig2)); MY_OR2 U2 (.a (sig1), .b (sig2), .out (OUT1)); endmodule
ModelSim compile
2. Lab 2: Simulation/Verification
write a Verilog testbench for the AND_OR
Figure 2