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

when dec.decoded is opcode_pcadda, there's a data width mismatch on the assignment (11 bit vs 15 bit) #1

Closed
DiegoRosales opened this issue May 20, 2020 · 1 comment

Comments

@DiegoRosales
Copy link

On the following line, there's a mismatch on the data width.
I've just learned about this project so I don't know what this exactly does, but it throws errors.

npc <= IPC + signextend15(A);

I don't see that function (signextend15) being used anywhere else. Can it be reduced to 11 bits like so?

  function signextend11(a: in wordtype) return unsigned is
    variable r: unsigned(10 downto 0);
  begin
    r(7 downto 0) := a;
    r(10 downto 8) := (others => a(7));
    return r;
  end signextend11;

Thanks!

@alvieboy
Copy link
Collaborator

alvieboy commented May 20, 2020 via email

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

2 participants