I have attached my code for my design source and test bench. I can't get outputs for N22
and N23
.
The first part is the downloaded netlist for C17
module c17 (N1,N2,N3,N6,N7,N22,N23);
input N1,N2,N3,N6,N7;
output N22,N23;
wire N10,N11,N16,N19;
nand NAND2_1 (N10, N1, N3);
nand NAND2_2 (N11, N3, N6);
nand NAND2_3 (N16, N2, N11);
nand NAND2_4 (N19, N11, N7);
nand NAND2_5 (N22, N10, N16);
nand NAND2_6 (N23, N16, N19);
endmodule
The next part is my testbench that steps through all of the binary inputs, but I can't get outputs.
`timescale 10ns / 1ps
module test;
reg N1,N2,N3,N6,N7;
wire N22,N23;
integer i;
initial begin
$monitor(N1,N2,N3,N6,N7,N22,N23);
for (i=0; i<31; i=i+1)begin
{N1,N2,N3,N6,N7} = i;
#1;
end
end
endmodule