-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted OPT_STANDALONE and README documents
- Loading branch information
Showing
5 changed files
with
60 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
There are two bench testing directories, one for Verilator sources, and one for C++ simulation sources that will work with Verilator. The Verilog sources may or may not be used with Verilator. Indeed, they would work nicely as stand--alone top--level files that may be used to test whether or not the UART on a given board works. | ||
There are two bench testing directories, [one for Verilator sources](verilog), and [one for C++ simulation sources](cpp) that will work with Verilator. The Verilog sources may or may not be used with Verilator. Indeed, they would work nicely as stand--alone top--level files that may be used to test whether or not the UART on a given board works. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
This directory contains three basic configurations for testing your UART | ||
and proving that it works: | ||
- helloworld: Displays the familiar "Hello, World!" message over and over. Tests the transmit UART port. | ||
- linetest: Reads a line of text, then parrots it back. Tests both receive and transmit UART. | ||
- speechfifo: Recites the Gettysburg address over and over again. This can be used to test the transmit UART port, and particularly to test receivers to see if they can receive 1400+ characters at full speed without any problems. | ||
- [helloworld](helloworld.v): Displays the familiar "Hello, World!" message over and over. Tests the transmit UART port. | ||
- [echotest](echotest.v): Echoes any characters received directly back to the transmit port. Two versions of this exist: one that processes characters and regenerates them, and another that just connects the input port to the output port. These are good tests to be applied if you already know your transmit UART works. If the transmitter works, then this will help to verify that your receiver works. It's one fault is that it tends to support single character UART tests, hence the test below. | ||
- [linetest](linetest.v): Reads a line of text, then parrots it back. Tests both receive and transmit UART. | ||
- [speechfifo](speechfifo.v): Recites the [Gettysburg address](../cpp/speech.txt) over and over again. This can be used to test the transmit UART port, and particularly to test receivers to see if they can receive 1400+ characters at full speed without any problems. | ||
|
||
Each of these configurations has a commented line defining OPT_STANDALONE within | ||
it. If you uncomment this line, the configurations may be run as stand alone | ||
configurations. (You will probably want to adjust the baud clock divider, to | ||
be specific to the baud rate you wish to generate as well as the clock rate | ||
you will be generating this from.) | ||
it. This option will automatically be defined if built within Verilator, | ||
allowing the Verilator simulation to set the serial port parameters. Otherwise, | ||
you should be able to run these files as direct top level design files. (You | ||
will probably want to adjust the baud clock divider if so, so that you can set | ||
to the baud rate you wish to generate as well as the clock rate you will be | ||
generating this from.) | ||
|
||
If you leave OPT_STANDALONE commented, these demo programs should work quite | ||
nicely with a Verilator based simulation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters