Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

UART test for Tang Nano 9k in Bluespec, synthesis with yosys+nextpnr

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 a combination of GNU screen and picocom. Right after loading the bitfile to board, run:

```
screen /dev/ttyUSB1 3000000,cs8,-parenb,cstopb
```

Then close GNU screen by typing `Ctrl+a k y`.

Finally, run picocom and have fun:

```
picocom -b 3000000 -d 8 -p 1 -y n /dev/ttyUSB1
```