Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-header does not generate code for regfile #41

Open
m-kru opened this issue Aug 21, 2024 · 0 comments
Open

c-header does not generate code for regfile #41

m-kru opened this issue Aug 21, 2024 · 0 comments

Comments

@m-kru
Copy link

m-kru commented Aug 21, 2024

I have a very simple description

addrmap Main {
  default regwidth = 32;

  reg {
    field {sw = rw; hw = r; fieldwidth = 7;}  C1;
    field {sw = rw; hw = r; fieldwidth = 9;}  C2;
    field {sw = rw; hw = r; fieldwidth = 12;} C3;
  } C;

  reg {
    field {sw = r; hw = w; fieldwidth = 7;}  S1;
    field {sw = r; hw = w; fieldwidth = 9;}  S2;
    field {sw = r; hw = w; fieldwidth = 12;} S3;
  } S;

  reg { regwidth = 8; field {sw= rw; hw = r; fieldwidth = 8;} C; } CA[10];
  reg { regwidth = 8; field {sw= r; hw = w; fieldwidth = 8;} C; } SA[10];

  reg { field {sw = r; hw = w; fieldwidth = 32;} Value;} Counter0;
  reg { regwidth = 8; field {sw = r; hw = w; fieldwidth = 1;} Value;} Counter1;

  reg { regwidth = 16; field {sw = rw; hw = r; fieldwidth = 16;} Mask;} Mask;

  reg { field {sw = r; hw = na; fieldwidth = 24;} Version = 0x010102;} Version;

  regfile Subblock {
    reg {
      field {sw = w; hw =r; fieldwidth = 20;} A;
      field {sw = w; hw =r; fieldwidth = 10;} B;
    } Add0;
    reg {
      regwidth = 8;
      field {sw = w; hw =r; fieldwidth = 8; swacc;} C;
    } Add1;
    reg { field {sw = r; hw = w; fieldwidth = 20;} Sum;} Sum;

  };
};

When I generate header file using peakrdl c-header bus.rdl -o bus.h command, there is no code related to the Subblock regfile in the generated header file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant