Skip to content

Register Bank #1681

Answered by maehne
Mrlogisim asked this question in Q&A
Mar 1, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Thanks for your Logisim file and the additional screenshots. They make me believe that Logisim-evolution works correctly and that you are not experiencing a bug. To verify, I recommend you to simulate the registers block alone: When you set WriteData to some value, choose with rd the target register, and activate RegWrite, everything is set up for a write to the register. What is needed now is a transition from 0 to 1 (i.e., rising edge) on the Ck signal. The value ends up correctly in the register.

I think what you are observing is that the above-mentioned control signals get set after the rising edge. At this moment Ck is still 1. However, the register will sample its input only once Ck

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Mrlogisim
Comment options

@maehne
Comment options

@Mrlogisim
Comment options

Comment options

You must be logged in to vote
2 replies
@Mrlogisim
Comment options

@maehne
Comment options

Answer selected by maehne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants