forked from Github_Repos/cvw
		
	Fixed receive fifo ITNR bug.
This commit is contained in:
		
							parent
							
								
									92a2ad02db
								
							
						
					
					
						commit
						c4f1a0362b
					
				@ -326,8 +326,8 @@ module uartPC16550D(
 | 
				
			|||||||
        rxdataready <= #1 1;
 | 
					        rxdataready <= #1 1;
 | 
				
			||||||
      end else if (~MEMRb & A == 3'b000 & ~DLAB) begin // reading RBR updates ready / pops fifo 
 | 
					      end else if (~MEMRb & A == 3'b000 & ~DLAB) begin // reading RBR updates ready / pops fifo 
 | 
				
			||||||
        if (fifoenabled) begin
 | 
					        if (fifoenabled) begin
 | 
				
			||||||
          if (rxfifotail+1 < rxfifohead) rxfifotail <= #1 rxfifotail + 1;
 | 
					          if (~rxfifoempty) rxfifotail <= #1 rxfifotail + 1;
 | 
				
			||||||
          if (rxfifohead == rxfifotail +1) rxdataready <= #1 0;
 | 
					          if (rxfifoempty) rxdataready <= #1 0;
 | 
				
			||||||
        end else begin
 | 
					        end else begin
 | 
				
			||||||
          rxdataready <= #1 0;
 | 
					          rxdataready <= #1 0;
 | 
				
			||||||
          RXBR <= #1 {1'b0, RXBR[9:0]}; // Ben 31 March 2022: I added this so that rxoverrunerr permanently goes away upon reading RBR (when not in FIFO mode)
 | 
					          RXBR <= #1 {1'b0, RXBR[9:0]}; // Ben 31 March 2022: I added this so that rxoverrunerr permanently goes away upon reading RBR (when not in FIFO mode)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user