Skip to content

Parameter as variable  #58

Open
Open
@hgdangkhoi

Description

@hgdangkhoi

Hello,

I want to ask if the compiler has the ability to extract the parameter name instead of turning them into constant after compiler. For the below example:

addrmap test#(bit BASE_ADDR_C = 0) {
   reg reg_test{
   .....
   }
   reg_test test1@(BASE_ADDR_C + 8);
}

For the test1 address, is there a way to extract and know that this address is derived from BASE_ADDR_C + 8? as far as I understand, the compiler seems to resolve this into constant 8.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions