https://github.com/thotypous/tangnano9k-bsv-uart-test
UART test for Tang Nano 9k in Bluespec, synthesis with yosys+nextpnr
https://github.com/thotypous/tangnano9k-bsv-uart-test
Last synced: 5 months ago
JSON representation
UART test for Tang Nano 9k in Bluespec, synthesis with yosys+nextpnr
- Host: GitHub
- URL: https://github.com/thotypous/tangnano9k-bsv-uart-test
- Owner: thotypous
- Created: 2024-04-29T23:53:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T19:45:10.000Z (over 1 year ago)
- Last Synced: 2025-02-14T20:28:05.817Z (over 1 year ago)
- Language: Verilog
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Environment
Use `bluespec-git`, `bluespec-contrib-git`, `yosys-git` and `nextpnr-git` from [Chaotic AUR](https://aur.chaotic.cx), or [docker-fpga-builder](https://github.com/thotypous/docker-fpga-builder).
# Running
```
make load
```
# Caveats
USB UART in Tang Nano 9k is an emulated FTDI which seems to be a little buggy.
The only way I found to reliably set the baud rate was by calling stty before starting picocom. Right after loading the bitfile to board, run:
```
stty -F /dev/ttyUSB1 3000000 cs8 -parenb cstopb
```
Finally, run picocom and have fun:
```
picocom -b 3000000 -d 8 -p 1 -y n /dev/ttyUSB1
```