Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module parse_testbench;
- integer cnt;
- wire [4:0]a, b, c, d;
- parse parse(cnt, a, b, c, d);
- initial
- begin
- cnt = 5;
- #5;
- cnt = 14;
- #5;
- cnt = 193;
- #5;
- cnt = 7860;
- end
- initial
- $monitor("cnt = %d decimal: a = %d b = %d c = %d d = %d binary: a = %b b = %b c = %b d = %b", cnt, a, b, c, d, a, b, c, d);
- initial
- $dumpvars;
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement