blob: 4b9083b9991df02a1add9d40aafd5db1448572f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
`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
`define FAIL(msg="") \
begin \
$display ("FAIL: %s", msg); \
end
`endif
|