mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	add IOBUF
This commit is contained in:
		
							parent
							
								
									903f997391
								
							
						
					
					
						commit
						0f6269b04c
					
				
					 2 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
					@ -308,6 +308,14 @@ module TBUF (O, I, OEN);
 | 
				
			||||||
  assign O = OEN ? I : 1'bz;
 | 
					  assign O = OEN ? I : 1'bz;
 | 
				
			||||||
endmodule
 | 
					endmodule
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					module IOBUF (O, IO, I, OEN);
 | 
				
			||||||
 | 
					  input I,OEN;
 | 
				
			||||||
 | 
					  output O;
 | 
				
			||||||
 | 
					  inout IO;
 | 
				
			||||||
 | 
					  assign IO = OEN ? I : 1'bz;
 | 
				
			||||||
 | 
					  assign I = IO;
 | 
				
			||||||
 | 
					endmodule
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module GSR (input GSRI);
 | 
					module GSR (input GSRI);
 | 
				
			||||||
	wire GSRO = GSRI;
 | 
						wire GSRO = GSRI;
 | 
				
			||||||
endmodule
 | 
					endmodule
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -230,7 +230,8 @@ struct SynthGowinPass : public ScriptPass
 | 
				
			||||||
			run("techmap -map +/gowin/cells_map.v");
 | 
								run("techmap -map +/gowin/cells_map.v");
 | 
				
			||||||
			run("setundef -undriven -params -zero");
 | 
								run("setundef -undriven -params -zero");
 | 
				
			||||||
			run("hilomap -singleton -hicell VCC V -locell GND G");
 | 
								run("hilomap -singleton -hicell VCC V -locell GND G");
 | 
				
			||||||
			run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O, -toutpad TBUF OEN:I:O", "(unless -noiopads)");
 | 
								run("iopadmap -bits -inpad IBUF O:I -outpad OBUF I:O "
 | 
				
			||||||
 | 
									"-toutpad TBUF OEN:I:O -tinoutpad IOBUF OEN:O:I:IO", "(unless -noiopads)");
 | 
				
			||||||
			run("dffinit  -ff DFF Q INIT");
 | 
								run("dffinit  -ff DFF Q INIT");
 | 
				
			||||||
			run("clean");
 | 
								run("clean");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue