Add user parameters to regblock package. #112
This commit is contained in:
11
tests/test_pkg_params/regblock.rdl
Normal file
11
tests/test_pkg_params/regblock.rdl
Normal file
@@ -0,0 +1,11 @@
|
||||
addrmap top #(
|
||||
longint N_REGS = 1,
|
||||
longint REGWIDTH = 32,
|
||||
string NAME = "abcd"
|
||||
) {
|
||||
reg reg_t {
|
||||
regwidth = REGWIDTH;
|
||||
field {sw=rw; hw=na;} f[REGWIDTH] = 1;
|
||||
};
|
||||
reg_t regs[N_REGS];
|
||||
};
|
||||
Reference in New Issue
Block a user