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

Instruction memory uses LC #13

Open
harrysarson opened this issue Jan 29, 2019 · 1 comment
Open

Instruction memory uses LC #13

harrysarson opened this issue Jan 29, 2019 · 1 comment

Comments

@harrysarson
Copy link
Contributor

I believe that in https://github.com/physical-computation/RV32I_iCE40/blob/master/verilog/instruction_mem.v#L13:

assign out = instruction_memory[addr >> 2];

Is not getting synthesised as BRAM. To fix this I think this line may need to be moved into an always block.

@phillipstanleymarbell phillipstanleymarbell transferred this issue from another repository May 5, 2019
@rjlv2
Copy link
Contributor

rjlv2 commented May 5, 2019

The instruction memory is written as combinational logic (and is not clocked, BRAM requires a clock). The limited amount of BRAM available is used in the general purpose registers and data memory.

Making instruction memory work using BRAM can be a future improvement.

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