2017-07-22 09:35:46 -05:00
|
|
|
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) );
|
2017-07-27 04:42:05 -05:00
|
|
|
`ifdef FAIL
|
2017-07-22 09:35:46 -05:00
|
|
|
a_wr: assert property ( @(posedge clock) write |-> ready );
|
2017-07-27 04:42:05 -05:00
|
|
|
`else
|
|
|
|
a_wr: assert property ( @(posedge clock) write |=> ready );
|
|
|
|
`endif
|
2017-07-22 09:35:46 -05:00
|
|
|
endmodule
|