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

Assignment of static signals into registers #877

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Assignment of static signals into registers #877

merged 1 commit into from
Nov 19, 2024

Conversation

rp-jt
Copy link
Collaborator

@rp-jt rp-jt commented Nov 19, 2024

No description provided.

@rp-jt rp-jt requested a review from jotego November 19, 2024 09:08
@jotego jotego closed this Nov 19, 2024
@jotego jotego reopened this Nov 19, 2024
@jotego jotego merged commit e7cf447 into master Nov 19, 2024
109 of 113 checks passed
assign ind_coin = ~(dipsw[13]^mwalka) & mwalk;
assign play3 = ~(dipsw[12]^mwalka) & mwalk;
always @( posedge clk ) begin
mwalk <= game_id[6];
Copy link
Owner

@jotego jotego Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that for this one (mwalk) there is no associated logic so it would require using an additional flip flop. Still, by registering it again in the module, you are allowing the place and route tool to have it closer to the point where it is used so it helps timing too.
If you had not registered it, it may have needed to travel from a far point, accumulating delay.
As there are plenty of unused flip flops, registering inputs is a good practice.

@rp-jt rp-jt deleted the w2reg branch November 19, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants