mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-06-03 05:21:51 -04:00
Add incoming and outgoing CTS (Clear To Send) signals for the FPGA
to let the CH552 and FPGA signal each other that it is OK to send UART data. The CTS signals indicate "OK to send" if high. If an incoming CTS signal goes low, the receiver of that signal should immediatly stop sending UART data.
This commit is contained in:
parent
5d138ef45b
commit
48cbb55d6e
7 changed files with 54 additions and 5 deletions
|
@ -29,6 +29,8 @@ module tb_application_fpga_sim ();
|
|||
reg tb_clk = 0;
|
||||
wire tb_interface_rx;
|
||||
reg tb_interface_tx = 1'h1; // Set to 1 to simulate inactive UART
|
||||
reg tb_interface_ch552_cts = 1'h1; // Set to 1 to simulate OK to send
|
||||
reg tb_interface_fpga_cts;
|
||||
wire tb_spi_ss;
|
||||
wire tb_spi_sck;
|
||||
wire tb_spi_mosi;
|
||||
|
@ -49,6 +51,8 @@ module tb_application_fpga_sim ();
|
|||
.clk(tb_clk),
|
||||
.interface_rx(tb_interface_rx),
|
||||
.interface_tx(tb_interface_tx),
|
||||
.interface_ch552_cts(tb_interface_ch552_cts),
|
||||
.interface_fpga_cts(tb_interface_fpga_cts),
|
||||
.spi_ss(tb_spi_ss),
|
||||
.spi_sck(tb_spi_sck),
|
||||
.spi_mosi(tb_spi_mosi),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue