cancel
Showing results for 
Search instead for 
Did you mean: 

AI

slvjai11
Journeyman III

test bench

slvjai11_0-1719387690919.png

 

 

I have attached the screenshot of my output for my simple circuit, I am getting Z in x1 & x2, and I have used a gate-level model. kindly let me know the error y I am getting like this.

Test Bench

module strucleltb();
reg a,b,c,d;
wire y,x1,x2;
struclel dut(.a(a),.b(b),.c(c),.d(d),.y(y));
initial
begin
a=0;b=1;c=1;d=1;
#10 a=1; b=1; c=0; d=0;
#15 a=0; b=0; c=0; d=0;
end
endmodule

 

 

Code

 


module struclel(a,b,c,d,y);
input a ,b,c,d;
output y;
wire x1,x2;
and g1(x1,a,b);
and g2(x2,c,d);
or g3(y,x1,x2);
endmodule

0 Likes
1 Reply

You need to go to https://www.xilinx.com/support.html for help with that.

 

Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, NM790 2TB, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T..
0 Likes