Professional Documents
Culture Documents
Assignment 1
Assignment 1
Assignment 1
Assignment
Name : Anirudh Vats
Enrollment : E23CSEU0064
1)
2)
3)
Verilog Code – Not Gate:
module not_gate(
input a,
output y);
assign y = ~a;
endmodule
Test Bench For Not Gate :
module tb_not_gate;
reg A;
wire Y;
not_gate a1 (.a(A),.y(Y));
initial
begin
A=0;#5;
A=1;#5;
end
initial
begin
$dumpfile("dump.vcd");
$dumpvars(1);
end
endmodule
4)