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

Subversion Repositories wbuart32

[/] [wbuart32/] [trunk/] [rtl/] [wbuart.v] - Diff between revs 21 and 26

Show entire file | Details | Blame | View Log

Rev 21 Rev 26
Line 12... Line 12...
// Creator:     Dan Gisselquist, Ph.D.
// Creator:     Dan Gisselquist, Ph.D.
//              Gisselquist Technology, LLC
//              Gisselquist Technology, LLC
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
// Copyright (C) 2015-2019, Gisselquist Technology, LLC
//
//
// This program is free software (firmware): you can redistribute it and/or
// This program is free software (firmware): you can redistribute it and/or
// modify it under the terms of  the GNU General Public License as published
// modify it under the terms of  the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or (at
// by the Free Software Foundation, either version 3 of the License, or (at
// your option) any later version.
// your option) any later version.
Line 42... Line 42...
//
//
`define UART_SETUP      2'b00
`define UART_SETUP      2'b00
`define UART_FIFO       2'b01
`define UART_FIFO       2'b01
`define UART_RXREG      2'b10
`define UART_RXREG      2'b10
`define UART_TXREG      2'b11
`define UART_TXREG      2'b11
 
//
 
// `define      USE_LITE_UART
module  wbuart(i_clk, i_rst,
module  wbuart(i_clk, i_rst,
                //
                //
                i_wb_cyc, i_wb_stb, i_wb_we, i_wb_addr, i_wb_data,
                i_wb_cyc, i_wb_stb, i_wb_we, i_wb_addr, i_wb_data,
                        o_wb_ack, o_wb_stall, o_wb_data,
                        o_wb_ack, o_wb_stall, o_wb_data,
                //
                //
Line 125... Line 127...
        // the UART input, a clock, and a reset line, and produces outputs:
        // the UART input, a clock, and a reset line, and produces outputs:
        // a stb (true when new data is ready), and an 8-bit data out value
        // a stb (true when new data is ready), and an 8-bit data out value
        // valid when stb is high.
        // valid when stb is high.
`ifdef  USE_LITE_UART
`ifdef  USE_LITE_UART
        rxuartlite      #(INITIAL_SETUP[23:0])
        rxuartlite      #(INITIAL_SETUP[23:0])
                rx(i_clk, (i_rst), i_uart_rx, rx_stb, rx_uart_data);
                rx(i_clk, i_uart_rx, rx_stb, rx_uart_data);
        assign  rx_break = 1'b0;
        assign  rx_break = 1'b0;
        assign  rx_perr  = 1'b0;
        assign  rx_perr  = 1'b0;
        assign  rx_ferr  = 1'b0;
        assign  rx_ferr  = 1'b0;
        assign  ck_uart  = 1'b0;
        assign  ck_uart  = 1'b0;
`else
`else

powered by: WebSVN 2.1.0

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