Add user parameters to regblock package. #112

This commit is contained in:
Alex Mykyta
2025-04-10 22:16:13 -07:00
parent 0a9a3ad51e
commit 48ae215eda
6 changed files with 65 additions and 0 deletions

View 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];
};