【Perf-V Evaluation】+Test of serial communication function
[Copy link]
This post was last edited by jinglixixi on 2021-5-24 10:22
Serial communication and lighting programs are basic examples of program testing, but in the routines of the Perf-V development board, this function is placed in the Hummingbird DEMO instead of being provided in the FPGA DEMO. It can be seen that there is a certain contrast in the workload of the two in terms of function implementation!
Following the introduction of forum friends, I finally successfully verified this function on the Perf-V development board.
According to the pin assignment of the Perf-V development board, the pin constraints involved are shown in Figure 1.
Figure 1 Pin assignment
The serial communication function consists of three parts, namely: the top module uart_top, the receiving module uart_rx and the sending module uart_tx.
Since the procedures are long, they are not listed one by one.
After the program is compiled, the generated circuit schematic and Package diagram are shown in Figures 2 and 3.
Figure 2 Circuit diagram
Figure 3 Package diagram
After generating the bit file, connect the debugger to the development board and the computer to download the program. The specific line connection is shown in Figure 4.
Figure 4 Line connection
After downloading the program, set the communication parameters of the serial port assistant as shown in Figure 5 and open the serial port, then you can see the data sent by the FPGA development board.
At this time, if you click the "Send" button, you can see the received content fed back by the FPGA development board, as shown in Figure 6.
With the serial communication function, we can use it to observe the internal operation results or use the serial communication function to control some devices managed by serial instructions!
Figure 5 Data is automatically sent
Figure 6 Transceiver test
Project Files:
|