Question: New to programming in Digital Design. What does this code do? 1. File and or.v- AND/OR logic design code module and2 (input [1:0] in, output
New to programming in Digital Design. What does this code do?

1. File and or.v- AND/OR logic design code module and2 (input [1:0] in, output out); endmodule module or2 assign out= in [1] & in [0]; (input [1:0] in, output out); endmodule module and or assign out in [1] in [0]; = (input [3:0] in, output out); wire [1:01 sig and2 Al (in[3:21, sig[1]) and2 A2 (in[l:0, sig[0]); or2 01 (sig, out) 2. File tb and or.v AND/OR logic testbench code module tb and or reg [3:0] in; out; and or DUT (in, out) initial begin in 4,b0000; #5; in 4' b0001; #5; = in 4 'b1010 ; #5 ; in in 4 'b1100 ; #5 ; in ir 4 'b1110 ; #5 ; in display "Simulation finish 4 'b1011 ; 4 'b1101 ; 4 'b11 11 ; Finished") #5 ; #5 ; #5 ; end endmodule
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
