RE: [sv-bc] Is number assigned to generate block reset at the end of design unit

From: Steven Sharp <sharp@cadence.com>
Date: Mon Sep 13 2010 - 13:04:51 PDT

Using the term "reset" is misleading, since it suggests that the same
counter is used, but reset to 1. In fact, a separate counter is used
for each scope. This is necessary when the scopes are nested, since
the counter for the outer scope may be used again, and must not have
been reset. For example

module m1;
  if(1) begin // genblk1
  end
  module m2;
    if(1) begin // genblk1
    end
    if(1) begin // genblk2
    end
  endmodule
  if(1) begin // genblk2 (NOT genblk1 or genblk3)
  end
endmodule

Steven Sharp | Architect | Cadence

P: 508.459.1436 M: 774.535.4149 www.cadence.com

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Sep 13 13:05:16 2010

This archive was generated by hypermail 2.1.8 : Mon Sep 13 2010 - 13:07:48 PDT