diff options
| author | Julian Blake Kongslie | 2022-05-15 15:52:01 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-05-15 15:52:01 -0700 |
| commit | c3dd0394c82716f1aeccda7042fbe9baec42aa22 (patch) | |
| tree | fab38dd6cc87c0a8247861b830ceb0b751c34c0d /hdl/top.sv | |
| parent | Consistent RS232 wire names (DCE side names is used everywhere) (diff) | |
| download | multipdp8-c3dd0394c82716f1aeccda7042fbe9baec42aa22.tar.xz | |
Only phase shift the RS232 tx clock when we are between bytes.
Diffstat (limited to '')
| -rw-r--r-- | hdl/top.sv | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -52,6 +52,8 @@ module top | |||
| 52 | bit rs232_rx_clock; | 52 | bit rs232_rx_clock; |
| 53 | assign rs232_rx_clock = internal_clock; | 53 | assign rs232_rx_clock = internal_clock; |
| 54 | 54 | ||
| 55 | bit rs232_clock_busy; | ||
| 56 | |||
| 55 | bit wire_tx_ready; | 57 | bit wire_tx_ready; |
| 56 | bit wire_tx_valid; | 58 | bit wire_tx_valid; |
| 57 | uart_byte_t wire_tx_data; | 59 | uart_byte_t wire_tx_data; |
| @@ -63,6 +65,8 @@ module top | |||
| 63 | ( .clock(rs232_tx_clock) | 65 | ( .clock(rs232_tx_clock) |
| 64 | , .reset(rs232_tx_reset) | 66 | , .reset(rs232_tx_reset) |
| 65 | 67 | ||
| 68 | , .clock_busy(rs232_clock_busy) | ||
| 69 | |||
| 66 | , .out_ready(wire_tx_ready) | 70 | , .out_ready(wire_tx_ready) |
| 67 | , .out_valid(wire_tx_valid) | 71 | , .out_valid(wire_tx_valid) |
| 68 | , .out_data(wire_tx_data) | 72 | , .out_data(wire_tx_data) |
| @@ -102,6 +106,7 @@ module top | |||
| 102 | ( .clock(rs232_rx_clock) | 106 | ( .clock(rs232_rx_clock) |
| 103 | , .reset(internal_reset) | 107 | , .reset(internal_reset) |
| 104 | 108 | ||
| 109 | , .clock_busy(rs232_clock_busy) | ||
| 105 | , .clock_out(rs232_tx_clock) | 110 | , .clock_out(rs232_tx_clock) |
| 106 | 111 | ||
| 107 | , .in_ready(wire_rx_ready) | 112 | , .in_ready(wire_rx_ready) |
