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

examples/ulx3s: serial port demo #80

Merged
merged 12 commits into from
Jun 27, 2019
Merged

Conversation

osresearch
Copy link
Contributor

@osresearch osresearch commented Jun 17, 2019

The blinky example is enough to show that the programmer works, although not how to communicate with the board over the serial port. This patch adds a simple serial UART and echos text back to the serial console, as well as converts the Makefile to use rules instead of hardcoding the filenames.

With the LPF file in use, the serial RX works.


blinky_out.config: blinky.json
nextpnr-ecp5 --json blinky.json --textcfg blinky_out.config --45k
IDCODE ?= 0x21111043 # 12f
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we should have a device option here too, that would also change the device passed to nextpnr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like only (?) the -12f part requires this option. I'm not sure where the right place to fix this is (especially in light of things like https://github.com/SymbiFlow/prjtrellis/issues/55#issuecomment-452689924 ). Should nextpnr-ecp5 know about the 12f and its special id instead?

examples/ulx3s/Makefile Outdated Show resolved Hide resolved
examples/ulx3s/hello.v Outdated Show resolved Hide resolved
@daveshah1 daveshah1 merged commit 3311e6d into YosysHQ:master Jun 27, 2019
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.

2 participants