Home > Community > Forums > Functional Verification Shared Code > vr_ad_reg_file multiple instance

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 vr_ad_reg_file multiple instance 

Last post Mon, Aug 30 2010 6:47 AM by Ravisinha. 0 replies.
Started by Ravisinha 30 Aug 2010 06:47 AM. Topic has 0 replies and 18269 views
Page 1 of 1 (1 items)
Sort Posts:
  • Mon, Aug 30 2010 6:47 AM

    • Ravisinha
    • Top 500 Contributor
    • Joined on Mon, Nov 23 2009
    • Posts 21
    • Points 315
    vr_ad_reg_file multiple instance Reply

    Hello All,

    I have a situation where i want to implement 8 instance of some particular reg_file which all have many reg_def and reg_fld.

    For example :
    I have 8 instance of one DUT module (TEST0, TEST1,TEST2... TEST8), since its all are the instance so all the instance will have the sets of registers.. so to implement reg for one instance i can write code like..

    extend vr_ad_reg_file_kind : [TEST0];
    extend TEST0 vr_ad_reg_file {
    keep size == 256;
    };
    reg_def EX_REG_TX_DATA TEST0 8’h00 {
    // name : type : mask : reset value
    reg_fld data : uint(bits:8) : RW : 0;
    };

    But now the issue is inside 1 instance i have around 256 registers, and i need to implement for all the 8 instance.... so can anyone suggest me how we can make instance for vr_ad_reg_file, otherwise i have to write same code for all the 8 instance.

    Thanks

    Filed under: , ,
    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by Ravisinha at 30 Aug 2010 06:47 AM. Topic has 0 replies.