OpenCores
URL https://opencores.org/ocsvn/wbuart32/wbuart32/trunk

Subversion Repositories wbuart32

[/] [wbuart32/] [trunk/] [bench/] [verilog/] [echotest.v] - Diff between revs 6 and 10

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 6 Rev 10
Line 70... Line 70...
                        i_setup,
                        i_setup,
`endif
`endif
                        i_uart_rx, o_uart_tx);
                        i_uart_rx, o_uart_tx);
        input           i_clk;
        input           i_clk;
`ifndef OPT_STANDALONE
`ifndef OPT_STANDALONE
        input   [29:0]   i_setup;
        input   [30:0]   i_setup;
`endif
`endif
        input           i_uart_rx;
        input           i_uart_rx;
        output  wire    o_uart_tx;
        output  wire    o_uart_tx;
 
 
`ifdef  OPT_DUMBECHO
`ifdef  OPT_DUMBECHO
Line 100... Line 100...
        // data word, 1-stop bit, and no parity.
        // data word, 1-stop bit, and no parity.
        //
        //
        // This code only applies if OPT_DUMBECHO is not defined.
        // This code only applies if OPT_DUMBECHO is not defined.
`ifdef  OPT_STANDALONE
`ifdef  OPT_STANDALONE
        wire    [29:0]   i_setup;
        wire    [29:0]   i_setup;
        assign          i_setup = 30'd868;       // 115200 Baud, if clk @ 100MHz
        assign          i_setup = 31'd868;      // 115200 Baud, if clk @ 100MHz
`endif
`endif
 
 
        // Create a reset line that will always be true on a power on reset
        // Create a reset line that will always be true on a power on reset
        reg     pwr_reset;
        reg     pwr_reset;
        initial pwr_reset = 1'b1;
        initial pwr_reset = 1'b1;
Line 126... Line 126...
        wire    [7:0]    rx_data;
        wire    [7:0]    rx_data;
 
 
        rxuart  receiver(i_clk, pwr_reset, i_setup, i_uart_rx, rx_stb, rx_data,
        rxuart  receiver(i_clk, pwr_reset, i_setup, i_uart_rx, rx_stb, rx_data,
                        rx_break, rx_perr, rx_ferr, rx_ignored);
                        rx_break, rx_perr, rx_ferr, rx_ignored);
 
 
 
        // Bypass any transmit hardware flow control.
 
        wire    rts;
 
        assign rts = 1'b1;
 
 
        wire    tx_busy;
        wire    tx_busy;
        txuart  transmitter(i_clk, pwr_reset, i_setup, rx_break,
        txuart  transmitter(i_clk, pwr_reset, i_setup, rx_break,
                        rx_stb, rx_data, o_uart_tx, tx_busy);
                        rx_stb, rx_data, rts, o_uart_tx, tx_busy);
 
 
`endif
`endif
 
 
endmodule
endmodule
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.