> In the example being discussed: > > default clocking dclk @(posedge clk);endclocking > always @(negedge clk) begin > as1: assert property (a ##1 a); > as2: assert property (@(posedge clk_s) clk && sig); > end > > the standard as currently written, says that no clock can be > inferred from the procedural block, so default clocking applies. If > this is not what the user wants, then they need to be explicit. I'm sorry, as a user I strongly disagree. The subtlety of implied clocks is already a potential source of great confusion; this is only adding to it. I suggest that any typical user would regard the assertions as purely passive, having no effect on the flow of execution of the always- procedure, and therefore would expect as1 to be clocked by (negedge clk). Having the clock lapse back to the default clocking is a subtle error that might not surface until far too late. Excluding use within assertions from the clock inference rules is easy and intuitive. -- Jonathan Bromley -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Jul 1 11:25:49 2009
This archive was generated by hypermail 2.1.8 : Wed Jul 01 2009 - 11:29:55 PDT