You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of sending data on the user interface of the UART controller.
36
43
37
-
## Table of resource usage summary:
44
+

38
45
39
-
Use debouncer | Parity type | LE (LUT+FF) | LUT | FF | M9k | Fmax
40
-
:---:|:---:|:---:|:---:|:---:|:---:|:---:
41
-
True | none | 76 | 62 | 56 | 0 | 304.8 MHz
42
-
True | even/odd | 86 | 73 | 59 | 0 | 277.3 MHz
43
-
True | mark/space | 80 | 66 | 59 | 0 | 292.3 MHz
44
-
False | none | 73 | 60 | 52 | 0 | 308.7 MHz
45
-
False | even/odd | 79 | 71 | 55 | 0 | 278.7 MHz
46
-
False | mark/space | 77 | 64 | 55 | 0 | 338.0 MHz
46
+
Example of receiving data on the user interface of the UART controller. The last transaction in the example was corrupted during transmission, it contains a bad parity and stop bit.
47
47
48
-
*Implementation was performed using Quartus Prime Lite Edition 18.1.0 for Intel Cyclone 10 FPGA (10CL025YU256C8G). Setting of some generics: BAUD_RATE = 115200, CLK_FREQ = 50e6.*
48
+

49
49
50
-
## Simulation:
50
+
### Table of resource usage summary:
51
+
52
+
Parity type | LE | FF | M9k | Fmax
53
+
:---:|:---:|:---:|:---:|:---:
54
+
none | 77 | 56 | 0 | 305.5 MHz
55
+
even/odd | 84 | 60 | 0 | 289.4 MHz
56
+
mark/space | 82 | 60 | 0 | 290.7 MHz
51
57
52
-
A basic simulation is prepared in the repository. You can use the prepared TCL script to run simulation in ModelSim.
58
+
*Implementation was performed using Quartus Prime Lite Edition 20.1.0 for Intel Cyclone 10 FPGA (10CL025YU256C8G). Setting of some generics: USE_DEBOUNCER = True, BAUD_RATE = 115200, CLK_FREQ = 50e6.*
53
59
60
+
## Simulation:
61
+
62
+
A simulation is prepared in the repository. You can use the prepared TCL script to run simulation in ModelSim.
54
63
```
55
64
vsim -do sim/sim.tcl
56
65
```
57
66
58
67
## Examples:
59
68
60
-
The repository also includes several UART example designs. I use it on my FPGA board [CYC1000](https://shop.trenz-electronic.de/en/TEI0003-02-CYC1000-with-Cyclone-10-FPGA-8-MByte-SDRAM) with Intel Cyclone 10 FPGA (10CL025YU256C8G) and FTDI USB to UART Bridge. Here you can find [the documentation of the CYC1000 board](https://www.trenz-electronic.de/fileadmin/docs/Trenz_Electronic/Modules_and_Module_Carriers/2.5x6.15/TEI0003/REV02/Documents/CYC1000%20User%20Guide.pdf).
69
+
The repository also includes several UART example designs. I use it on my [FPGA board CYC1000](https://shop.trenz-electronic.de/en/TEI0003-02-CYC1000-with-Cyclone-10-FPGA-8-MByte-SDRAM) with Intel Cyclone 10 FPGA (10CL025YU256C8G) and FTDI USB to UART Bridge. Here you can find [the documentation of the CYC1000 board](https://www.trenz-electronic.de/fileadmin/docs/Trenz_Electronic/Modules_and_Module_Carriers/2.5x6.15/TEI0003/REV02/Documents/CYC1000%20User%20Guide.pdf).
61
70
62
71
### UART loopback:
63
72
@@ -67,10 +76,44 @@ The UART loopback example design is for testing data transfer between FPGA and P
67
76
68
77
### UART2WB bridge:
69
78
70
-
The UART2WB bridge example design is for testing access to Wishbone registers via the UART bridge. The example uses a simple script written in Python that allows you to read or write to 32-bit user registers connected to the Wishbone bus.
79
+
The UART2WB bridge example design is for testing access to Wishbone registers via the UART bridge. The example uses a simple script written in Python that allows you to read or write to 32-bit user registers connected to the [Wishbone bus](http://cdn.opencores.org/downloads/wbspec_b4.pdf).
71
80
72
81

73
82
83
+
After connecting the CYC1000 board to the PC, upload an example design to the FPGA and run the script ([Python 3](https://www.python.org) and [PySerial](https://pyserial.readthedocs.io/en/latest/shortintro.html) is required):
84
+
```
85
+
python examples/uart2wb/sw/wishbone.py
86
+
```
87
+
88
+
The expected output is:
89
+
```
90
+
Test of access to CSR (control status registers) via UART2WBM module...
0 commit comments