blob: 2780a42e5690e1e8c0db0163b173e0b8549c9b48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
`ifndef MACRO_SVH
`define MACRO_SVH
`define FAIL_UNLESS_EQUAL(a,b,c="") \
if ((a) !== (b)) begin \
$display("FAIL_UNLESS_EQUAL[%s]: Expected %h but actual value is %h.", c, a, b); \
end
`define RND_CHECK(a) \
if (!(a)) begin \
$display("Randomization failure. Simulation halted."); \
$finish; \
end
`endif
|