Tests: Show (non-)per-instance coverage

This commit is contained in:
Wilson Snyder 2021-02-18 19:20:43 -05:00
parent 120322df3e
commit aa99833580

View File

@ -19,6 +19,9 @@ module t (/*AUTOARG*/
.toggle (toggle),
.cyc (cyc[31:0]));
Sub sub1 (.*);
Sub sub2 (.*);
always @ (posedge clk) begin
if (cyc!=0) begin
cyc <= cyc + 1;
@ -142,3 +145,14 @@ module Test
`endif
endmodule
module Sub
(
input clk,
input integer cyc
);
// Simple cover, per-instance
pi_sub:
cover property (@(posedge clk) cyc == 3);
endmodule