Line 257... |
Line 257... |
// If you want to add hardware flow control to your design, simply
|
// If you want to add hardware flow control to your design, simply
|
// make rts an input to this module.
|
// make rts an input to this module.
|
//
|
//
|
// Since this is an output only module demonstrator, what would be the
|
// Since this is an output only module demonstrator, what would be the
|
// cts output is unused.
|
// cts output is unused.
|
wire rts, cts;
|
wire cts_n, rts_n_ignored;
|
assign rts = 1'b1;
|
assign cts_n = 1'b0;
|
|
|
// Finally--the unit under test--now that we've set up all the wires
|
// Finally--the unit under test--now that we've set up all the wires
|
// to run/test it.
|
// to run/test it.
|
wbuart #(INITIAL_UART_SETUP)
|
wbuart #(INITIAL_UART_SETUP)
|
wbuarti(i_clk, pwr_reset,
|
wbuarti(i_clk, pwr_reset,
|
wb_stb, wb_stb, 1'b1, wb_addr, wb_data,
|
wb_stb, wb_stb, 1'b1, wb_addr, wb_data,
|
uart_ack, uart_stall, uart_data,
|
uart_ack, uart_stall, uart_data,
|
1'b1, o_uart_tx, rts, cts,
|
1'b1, o_uart_tx, cts_n, rts_n_ignored,
|
ignored_rx_int, tx_int,
|
ignored_rx_int, tx_int,
|
ignored_rxfifo_int, txfifo_int);
|
ignored_rxfifo_int, txfifo_int);
|
|
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|