Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
buhe committed Jun 4, 2022
1 parent 40f96ba commit 919cc2e
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion 02/ALU_tb.v
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,59 @@ module ALU_tb();

x = 16'b000000000010001;
y = 16'b000000000000011;
zx=0;nx=1;zy=0;ny=1;f=0;no=1;
zx=1;nx=0;zy=1;ny=0;f=1;no=0;
display();

zx=1;nx=1;zy=1;ny=1;f=1;no=1;
display();

zx=1;nx=1;zy=1;ny=0;f=1;no=0;
display();

zx=0;nx=0;zy=1;ny=1;f=0;no=0;
display();

zx=1;nx=1;zy=0;ny=0;f=0;no=0;
display();

zx=0;nx=0;zy=1;ny=1;f=0;no=1;
display();

zx=1;nx=1;zy=0;ny=0;f=0;no=1;
display();

zx=0;nx=0;zy=1;ny=1;f=1;no=1;
display();

zx=1;nx=1;zy=0;ny=0;f=1;no=1;
display();

zx=0;nx=1;zy=1;ny=1;f=1;no=1;
display();

zx=1;nx=1;zy=0;ny=1;f=1;no=1;
display();

zx=0;nx=0;zy=1;ny=1;f=1;no=0;
display();

zx=1;nx=1;zy=0;ny=0;f=1;no=0;
display();

zx=0;nx=0;zy=0;ny=0;f=1;no=0;
display();

zx=0;nx=1;zy=0;ny=0;f=1;no=1;
display();

zx=0;nx=0;zy=0;ny=1;f=1;no=1;
display();

zx=0;nx=0;zy=0;ny=0;f=0;no=0;
display();

zx=0;nx=1;zy=0;ny=1;f=0;no=1;
display();
$finish();
end

Expand Down

0 comments on commit 919cc2e

Please sign in to comment.