I have to create the Verilog code and testbench for this schematic.
I have the design for it here.
module prob1(input wire a,b,c,d, output wire out);
assign out = (a||d)&&(!d&&b&&c);
endmodule
Here is what I have for the testbench so far.
module prob1_tb();
reg a,b,c,d;
wire out;
prob1 prob1_test(a,b,c,d, out);
initial begin
for(int i=0; i=16; i=i+1)
<loop code here>
end
end
endmodule
The part I am having issue with is how can I convert that number into those 4 inputs that are being used in the schematic? Or is there a better way to go about doing this?