Skip to content

Commit

Permalink
Create dec_imp_tb.v
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvojitss authored Apr 4, 2024
1 parent 7d30ce2 commit bb7d6d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dec_imp_tb.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module dec_imp_tb;
reg a;
reg b;
reg c;
wire d0;
wire d1;
wire d2;
wire d3;
wire d4;
wire d5;
wire d6;
wire d7;
wire f1;
wire f2;
wire f3;
dec_imp uut(.a(a),.b(b),.c(c),.d0(d0),.d1(d1),.d2(d2),.d3(d3),.d4(d4),.d5(d5),.d6(d6),.d7(d7),.f1(f1),.f2(f2),.f3(f3));
initial
begin
a=0;b=0;c=0;#100;
a=0;b=0;c=1;#100;
a=0;b=1;c=0;#100;
a=0;b=1;c=1;#100;
a=1;b=0;c=0;#100;
a=1;b=0;c=1;#100;
a=1;b=1;c=0;#100;
a=1;b=1;c=1;#100;
end
endmodule

0 comments on commit bb7d6d2

Please sign in to comment.