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

writes to fpga regs during reset can get lost #19

Open
olajep opened this issue Nov 11, 2015 · 2 comments
Open

writes to fpga regs during reset can get lost #19

olajep opened this issue Nov 11, 2015 · 2 comments

Comments

@olajep
Copy link
Contributor

olajep commented Nov 11, 2015

  1. assert reset bit
  2. deassert reset bit
  3. write something to RXCFG register
    = write gets lost ( RXCFG = 0)
  4. assert reset bit
  5. deassert reset bit
  6. usleep(1000)
  7. write something to RXCFG register
    = write gets through

Isn't there a AXI wait signal (WREADY?) we can use?

Alternatively can we do a read loop in sw over the reset register until the reset bit reads back as de-asserted?

or make it mandatory to sleep after the reset bit has been deasserted

@aolofsson
Copy link
Owner

There is a tx_active signal. Let's see if we can tie this back to make write wait....
In the meantime, usleep(1000)..

@olajep
Copy link
Contributor Author

olajep commented Nov 11, 2015

Posting again as github screwed up the formatting in the first try.

Case 1

  1. assert reset bit
  2. deassert reset bit
  3. write something to RXCFG register

= write gets lost ( RXCFG = 0)

Case 2

  1. assert reset bit
  2. deassert reset bit
  3. usleep(1000)
  4. write something to RXCFG register

= write gets through

Isn't there a AXI wait signal (WREADY?) we can use?

Alternatively can we do a read loop in sw over the reset register until the reset bit reads back as de-asserted?

or make it mandatory to sleep after the reset bit has been deasserted

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