blob: 816ee1da700b4cbc926ae42822c0cc208286261a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module top (input logic clock, ctrl);
logic read, write, ready;
demo uut (
.clock(clock),
.ctrl(ctrl)
);
assign read = uut.read;
assign write = uut.write;
assign ready = uut.ready;
a_rw: assert property ( @(posedge clock) !(read && write) );
`ifdef FAIL
a_wr: assert property ( @(posedge clock) write |-> ready );
`else
a_wr: assert property ( @(posedge clock) write |=> ready );
`endif
endmodule
|