Skip to content

Conversation

@the-snowwhite
Copy link
Contributor

@the-snowwhite the-snowwhite commented May 31, 2019

This adds 2 configs for the DExx_Cramps 1 with bspi and 1 with dbspi (buffered spi with decoded chip selects).
However to get the spi's to not send 3 datastreams for each write I had to change the write timing in the global hm2 uio qsys core(set_interface_property slave writeWaitTime 0):
the-snowwhite@b988a7b#diff-866caa37e2c4e9882a0a92a9672af4ceR147
@cdsteinkuehler
Seems like every time a hm2 core register was written there has been 2 extra writes/clock cycles that so far has gone unnoticed ... ?

@the-snowwhite the-snowwhite changed the title Spi work (Note: 1 evasive fix) Spi work (Note: 1 invasive fix) Jun 1, 2019
@ArcEye
Copy link
Contributor

ArcEye commented Jun 6, 2019

@cdsteinkuehler is obviously away - but I have no idea about the extra clock cycles.

Leaving for now.

@the-snowwhite
Copy link
Contributor Author

Ok
Not that there are lots of PR's in line..
Problem is that I have no easy way of testing the DExx_xx_DB25 bitfiles as I have no setup's running on the DB25 adaptor...

@cdsteinkuehler
Copy link
Contributor

It sounds like the multiple write issue is related to the handshake on the Avalon bus. I always use the wait signal, but the bus can be setup to have a fixed number of wait states and no handshake, which is what I think was causing the apparent 3x writes (one actual write, plus two clocks with the write signals in the same state due to the bus setup).

The other changes seem fine, merging.

@cdsteinkuehler cdsteinkuehler merged commit fdc9ddc into machinekit:master Jun 16, 2019
@the-snowwhite the-snowwhite deleted the spi-work branch June 17, 2019 01:41
@the-snowwhite
Copy link
Contributor Author

Went thru the build system smoth like butter :-)

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.

3 participants