forked from Github_Repos/cvw
		
	added delays to uart AHB signals
This commit is contained in:
		
							parent
							
								
									2aa76b27e1
								
							
						
					
					
						commit
						5efd5958e7
					
				| @ -45,11 +45,10 @@ module uart ( | |||||||
|   logic [7:0]      Din, Dout; |   logic [7:0]      Din, Dout; | ||||||
| 
 | 
 | ||||||
|   // rename processor interface signals to match PC16550D and provide one-byte interface
 |   // rename processor interface signals to match PC16550D and provide one-byte interface
 | ||||||
|   always_ff @(posedge HCLK) begin |   flopr #(1)  memreadreg(HCLK, ~HRESETn, ~(HSELUART & ~HWRITE), MEMRb); | ||||||
|     MEMRb <= ~(HSELUART & ~HWRITE); |   flopr #(1) memwritereg(HCLK, ~HRESETn, ~(HSELUART &  HWRITE), MEMWb); | ||||||
|     MEMWb <= ~(HSELUART & HWRITE); |   flopr #(3)   haddrreg(HCLK, ~HRESETn, HADDR[2:0], A); | ||||||
|     A <= HADDR[2:0]; | 
 | ||||||
|   end |  | ||||||
|   assign HRESPUART = 0; // OK
 |   assign HRESPUART = 0; // OK
 | ||||||
|   assign HREADYUART = 1; // should idle high during address phase and respond high when done; will need to be modified if UART ever needs more than 1 cycle to do something
 |   assign HREADYUART = 1; // should idle high during address phase and respond high when done; will need to be modified if UART ever needs more than 1 cycle to do something
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user