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

Added default reset signal #34

Merged
merged 1 commit into from Oct 25, 2019
Merged

Added default reset signal #34

merged 1 commit into from Oct 25, 2019

Conversation

Fatsie
Copy link
Contributor

@Fatsie Fatsie commented Oct 25, 2019

This change will let default sync domain have a reset signal.

@whitequark
Copy link
Contributor

Thanks, I was going to ask you about this change but I forgot. Two things:

  1. I think it would make sense to dedicate the reset button to the reset signal, as opposed to declaring it both as a button and as a reset resource. In fact, after your change, platform.request("button", 0) will usually fail.
  2. (Nit) In line with the convention for clocks, the resource should be called rst.

@Fatsie
Copy link
Contributor Author

Fatsie commented Oct 25, 2019

2. (Nit) In line with the convention for clocks, the resource should be called `rst`.

In same vain I have been wondering is clock inputs shouldn't just be called clk without the frequency in their name ?

@whitequark
Copy link
Contributor

In same vain I have been wondering is clock inputs shouldn't just be called clk without the frequency in their name ?

Good question. I admit that I carried this convention from oMigen without much thinking. But it seems occasionally useful (e.g. if the toolchain screws up the clock constraint, which happens more than I'd like, you can easily see it from the errors), and doesn't seem to do any harm.

@whitequark whitequark merged commit bc07491 into m-labs:master Oct 25, 2019
@Fatsie Fatsie deleted the atlys_default_rst branch October 25, 2019 10:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants