URL
https://opencores.org/ocsvn/wbuart32/wbuart32/trunk
Show entire file |
Details |
Blame |
View Log
Rev 13 |
Rev 15 |
Line 51... |
Line 51... |
//
|
//
|
`ifndef VERILATOR
|
`ifndef VERILATOR
|
`define OPT_STANDALONE
|
`define OPT_STANDALONE
|
`endif
|
`endif
|
//
|
//
|
|
//
|
|
// Two versions of the UART can be found in the rtl directory: a full featured
|
|
// UART, and a LITE UART that only handles 8N1 -- no break sending, break
|
|
// detection, parity error detection, etc. If we set USE_LITE_UART here, those
|
|
// simplified UART modules will be used.
|
|
//
|
|
// `define USE_LITE_UART
|
|
//
|
|
//
|
module helloworld(i_clk,
|
module helloworld(i_clk,
|
`ifndef OPT_STANDALONE
|
`ifndef OPT_STANDALONE
|
i_setup,
|
i_setup,
|
`endif
|
`endif
|
o_uart_tx);
|
o_uart_tx);
|
Line 128... |
Line 137... |
tx_stb <= 1'b1;
|
tx_stb <= 1'b1;
|
else if ((tx_stb)&&(!tx_busy)&&(tx_index==4'hf))
|
else if ((tx_stb)&&(!tx_busy)&&(tx_index==4'hf))
|
tx_stb <= 1'b0;
|
tx_stb <= 1'b0;
|
|
|
// Bypass any hardware flow control
|
// Bypass any hardware flow control
|
wire rts;
|
wire cts_n;
|
assign rts = 1'b1;
|
assign cts_n = 1'b0;
|
|
|
|
`ifdef USE_LITE_UART
|
|
txuartlite
|
|
#(24'd868)
|
|
transmitter(i_clk, tx_stb, tx_data, o_uart_tx, tx_busy);
|
|
`else
|
txuart transmitter(i_clk, pwr_reset, i_setup, tx_break,
|
txuart transmitter(i_clk, pwr_reset, i_setup, tx_break,
|
tx_stb, tx_data, rts, o_uart_tx, tx_busy);
|
tx_stb, tx_data, cts_n, o_uart_tx, tx_busy);
|
|
`endif
|
|
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.