Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module priority_tst();
- reg [3:0] W;
- wire [1:0] Y;
- wire Z;
- priority uut ( W, Y, Z);
- initial begin
- W = 4'b0001;
- #10 W = 4'b0010;
- #10 W = 4'b0011;
- #10 W = 4'b0100;
- #10 W = 4'b0101;
- #10 W = 4'b0110;
- #10 W = 4'b0111;
- #10 W = 4'b1000;
- #10 W = 4'b1001;
- #10 W = 4'b1010;
- #10 W = 4'b1011;
- #10 W = 4'b1100;
- #10 W = 4'b1101;
- #10 W = 4'b1110;
- #10 W = 4'b1111;
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement