URL
https://opencores.org/ocsvn/uart16550/uart16550/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 84 |
Rev 87 |
Line 60... |
Line 60... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.39 2002/07/29 21:16:18 gorban
|
|
// The uart_defines.v file is included again in sources.
|
|
//
|
// Revision 1.38 2002/07/22 23:02:23 gorban
|
// Revision 1.38 2002/07/22 23:02:23 gorban
|
// Bug Fixes:
|
// Bug Fixes:
|
// * Possible loss of sync and bad reception of stop bit on slow baud rates fixed.
|
// * Possible loss of sync and bad reception of stop bit on slow baud rates fixed.
|
// Problem reported by Kenny.Tung.
|
// Problem reported by Kenny.Tung.
|
// * Bad (or lack of ) loopback handling fixed. Reported by Cherry Withers.
|
// * Bad (or lack of ) loopback handling fixed. Reported by Cherry Withers.
|
Line 583... |
Line 586... |
if (wb_rst_i) lsr0_d <= #1 0;
|
if (wb_rst_i) lsr0_d <= #1 0;
|
else lsr0_d <= #1 lsr0;
|
else lsr0_d <= #1 lsr0;
|
|
|
always @(posedge clk or posedge wb_rst_i)
|
always @(posedge clk or posedge wb_rst_i)
|
if (wb_rst_i) lsr0r <= #1 0;
|
if (wb_rst_i) lsr0r <= #1 0;
|
else lsr0r <= #1 (rf_count==1 && fifo_read || rx_reset) ? 0 : // deassert condition
|
else lsr0r <= #1 (rf_count==1 && rf_pop && !rf_push_pulse || rx_reset) ? 0 : // deassert condition
|
lsr0r || (lsr0 && ~lsr0_d); // set on rise of lsr0 and keep asserted until deasserted
|
lsr0r || (lsr0 && ~lsr0_d); // set on rise of lsr0 and keep asserted until deasserted
|
|
|
// lsr bit 1 (receiver overrun)
|
// lsr bit 1 (receiver overrun)
|
reg lsr1_d; // delayed
|
reg lsr1_d; // delayed
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.