bus buffer with reg_fpga updated
This commit is contained in:
		
							parent
							
								
									c438fae14a
								
							
						
					
					
						commit
						17fe416e15
					
				
							
								
								
									
										7299
									
								
								lsu_bus_buffer.fir
								
								
								
								
							
							
						
						
									
										7299
									
								
								lsu_bus_buffer.fir
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										3623
									
								
								lsu_bus_buffer.v
								
								
								
								
							
							
						
						
									
										3623
									
								
								lsu_bus_buffer.v
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -370,18 +370,19 @@ trait lib extends param{ | |||
|       in_range := (addr(31,MASK_BITS) === start_addr(31,MASK_BITS)).asUInt | ||||
|     (in_range,in_region) | ||||
|   } | ||||
| 
 | ||||
|   object rvdff_fpga { | ||||
|   def apply(din: UInt, clk: Clock, clken: Bool,rawclk:Clock):UInt = { | ||||
|     if (RV_FPGA_OPTIMIZE) | ||||
|     withClock (clk) {RegEnable (din, 0.U, clken)} | ||||
|     else withClock(clk){RegNext (din, 0.U)} | ||||
|     withClock(rawclk) {RegEnable (din, 0.U, clken)} | ||||
|     else RegNext (din, 0.U) | ||||
|   } | ||||
| } | ||||
|   object rvdffs_fpga { | ||||
|     def apply(din: UInt, en:Bool,clk: Clock, clken: Bool,rawclk:Clock):UInt = { | ||||
|       if (RV_FPGA_OPTIMIZE) | ||||
|         withClock (clk) {RegEnable (din, 0.U, clken & en)} | ||||
|       else withClock (clk) {RegEnable (din, 0.U,en)} | ||||
|         withClock (rawclk) {RegEnable (din, 0.U, (clken & en))} | ||||
|       else RegEnable (din, 0.U,en) | ||||
|     } | ||||
|   } | ||||
|   ////rvdffe /////////////////////////////////////////////////////////////////////// | ||||
|  |  | |||
|  | @ -155,5 +155,5 @@ trait param { | |||
|   val SB_BUS_PRTY            = 	0x2 | ||||
|   val SB_BUS_TAG             = 	0x1 | ||||
|   val TIMER_LEGAL_EN         = 	0x1 | ||||
|   val RV_FPGA_OPTIMIZE       =  0x0 | ||||
|   val RV_FPGA_OPTIMIZE       =  0x1 | ||||
| } | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue