mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Moved GP_POR out of digital cells b/c it has delays
This commit is contained in:
		
							parent
							
								
									f55d4cc2fd
								
							
						
					
					
						commit
						60dd5dba7b
					
				
					 2 changed files with 21 additions and 21 deletions
				
			
		|  | @ -87,3 +87,24 @@ module GP_VREF(input VIN, output reg VOUT); | ||||||
| 	parameter VREF = 0; | 	parameter VREF = 0; | ||||||
| 	//cannot simulate mixed signal IP | 	//cannot simulate mixed signal IP | ||||||
| endmodule | endmodule | ||||||
|  | 
 | ||||||
|  | module GP_POR(output reg RST_DONE); | ||||||
|  | 	parameter POR_TIME = 500; | ||||||
|  | 
 | ||||||
|  | 	initial begin | ||||||
|  | 		RST_DONE = 0; | ||||||
|  | 
 | ||||||
|  | 		if(POR_TIME == 4) | ||||||
|  | 			#4000; | ||||||
|  | 		else if(POR_TIME == 500) | ||||||
|  | 			#500000; | ||||||
|  | 		else begin | ||||||
|  | 			$display("ERROR: bad POR_TIME for GP_POR cell"); | ||||||
|  | 			$finish; | ||||||
|  | 		end | ||||||
|  | 
 | ||||||
|  | 		RST_DONE = 1; | ||||||
|  | 
 | ||||||
|  | 	end | ||||||
|  | 
 | ||||||
|  | endmodule | ||||||
|  |  | ||||||
|  | @ -378,27 +378,6 @@ module GP_PGEN(input wire nRST, input wire CLK, output reg OUT); | ||||||
| 
 | 
 | ||||||
| endmodule | endmodule | ||||||
| 
 | 
 | ||||||
| module GP_POR(output reg RST_DONE); |  | ||||||
| 	parameter POR_TIME = 500; |  | ||||||
| 
 |  | ||||||
| 	initial begin |  | ||||||
| 		RST_DONE = 0; |  | ||||||
| 
 |  | ||||||
| 		if(POR_TIME == 4) |  | ||||||
| 			#4000; |  | ||||||
| 		else if(POR_TIME == 500) |  | ||||||
| 			#500000; |  | ||||||
| 		else begin |  | ||||||
| 			$display("ERROR: bad POR_TIME for GP_POR cell"); |  | ||||||
| 			$finish; |  | ||||||
| 		end |  | ||||||
| 
 |  | ||||||
| 		RST_DONE = 1; |  | ||||||
| 
 |  | ||||||
| 	end |  | ||||||
| 
 |  | ||||||
| endmodule |  | ||||||
| 
 |  | ||||||
| module GP_SHREG(input nRST, input CLK, input IN, output OUTA, output OUTB); | module GP_SHREG(input nRST, input CLK, input IN, output OUTA, output OUTB); | ||||||
| 
 | 
 | ||||||
| 	parameter OUTA_TAP = 1; | 	parameter OUTA_TAP = 1; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue