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

Subversion Repositories uart16550

[/] [uart16550/] [trunk/] [rtl/] [verilog/] [uart_transmitter.v] - Diff between revs 34 and 37

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

Rev 34 Rev 37
Line 61... Line 61...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.11  2001/10/29 17:00:46  gorban
 
// fixed parity sending and tx_fifo resets over- and underrun
 
//
// Revision 1.10  2001/10/20 09:58:40  gorban
// Revision 1.10  2001/10/20 09:58:40  gorban
// Small synopsis fixes
// Small synopsis fixes
//
//
// Revision 1.9  2001/08/24 21:01:12  mohor
// Revision 1.9  2001/08/24 21:01:12  mohor
// Things connected to parity changed.
// Things connected to parity changed.
Line 105... Line 108...
`include "timescale.v"
`include "timescale.v"
// synopsys translate_on
// synopsys translate_on
 
 
`include "uart_defines.v"
`include "uart_defines.v"
 
 
module uart_transmitter (clk, wb_rst_i, lcr, tf_push, wb_dat_i, enable, stx_pad_o, state, tf_count, tx_reset, rx_lsr_mask);
module uart_transmitter (clk, wb_rst_i, lcr, tf_push, wb_dat_i, enable, stx_pad_o, state, tf_count, tx_reset, lsr_mask);
 
 
input                                                                           clk;
input                                                                           clk;
input                                                                           wb_rst_i;
input                                                                           wb_rst_i;
input [7:0]                                                              lcr;
input [7:0]                                                              lcr;
input                                                                           tf_push;
input                                                                           tf_push;
input [7:0]                                                              wb_dat_i;
input [7:0]                                                              wb_dat_i;
input                                                                           enable;
input                                                                           enable;
input                                                                           tx_reset;
input                                                                           tx_reset;
input                                                                           rx_lsr_mask; //reset of fifo
input                                                                           lsr_mask; //reset of fifo
output                                                                          stx_pad_o;
output                                                                          stx_pad_o;
output [2:0]                                                             state;
output [2:0]                                                             state;
output [`UART_FIFO_COUNTER_W-1:0]        tf_count;
output [`UART_FIFO_COUNTER_W-1:0]        tf_count;
 
 
reg [2:0]                                                                        state;
reg [2:0]                                                                        state;
Line 152... Line 155...
        .underrun(      tf_underrun     ),
        .underrun(      tf_underrun     ),
        .overrun(       tf_overrun      ),
        .overrun(       tf_overrun      ),
        .count(         tf_count        ),
        .count(         tf_count        ),
        .error_bit(),                 // Ta ni priklopljen. Prej je manjkal, dodal Igor
        .error_bit(),                 // Ta ni priklopljen. Prej je manjkal, dodal Igor
        .fifo_reset(    tx_reset        ),
        .fifo_reset(    tx_reset        ),
        .reset_status(rx_lsr_mask)
        .reset_status(lsr_mask)
);
);
 
 
// TRANSMITTER FINAL STATE MACHINE
// TRANSMITTER FINAL STATE MACHINE
 
 
parameter s_idle        = 3'd0;
parameter s_idle        = 3'd0;

powered by: WebSVN 2.1.0

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