mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	support other I/O configurations
This commit is contained in:
		
							parent
							
								
									34f08bc639
								
							
						
					
					
						commit
						41ae513d60
					
				
					 3 changed files with 14 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -6,3 +6,10 @@ module \$__BEYOND_OBUF (output PAD, input I);
 | 
			
		|||
	NX_IOB_O _TECHMAP_REPLACE_ (.IO(PAD), .I(I), .C(1'b1));
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
module \$__BEYOND_TOBUF (output PAD, input I, input C);
 | 
			
		||||
	NX_IOB _TECHMAP_REPLACE_ (.IO(PAD), .I(I), .C(C));
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
module \$__BEYOND_IOBUF (output PAD, input I, output O, output C);
 | 
			
		||||
	NX_IOB _TECHMAP_REPLACE_ (.IO(PAD), .I(I), .O(O), .C(C));
 | 
			
		||||
endmodule
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -292,10 +292,10 @@ struct SynthNanoXplorePass : public ScriptPass
 | 
			
		|||
				run("nx_carry");
 | 
			
		||||
			}
 | 
			
		||||
			if (help_mode || iopad) {
 | 
			
		||||
				run("iopadmap -bits -outpad $__BEYOND_OBUF I:PAD -inpad $__BEYOND_IBUF O:PAD A:top", "(only if '-iopad')");
 | 
			
		||||
				run("iopadmap -bits -outpad $__BEYOND_OBUF I:PAD -toutpad $__BEYOND_TOBUF C:I:PAD -inpad $__BEYOND_IBUF O:PAD -tinoutpad $__BEYOND_IOBUF C:O:I:PAD A:top", "(only if '-iopad')");
 | 
			
		||||
				run("techmap -map +/nanoxplore/io_map.v");
 | 
			
		||||
				run("attrmvcp -attr LOC t:NX_IOB_O n:*");
 | 
			
		||||
				run("attrmvcp -attr LOC -driven t:NX_IOB_I n:*");
 | 
			
		||||
				run("attrmvcp -attr LOC t:NX_IOB_O t:NX_IOB n:*");
 | 
			
		||||
				run("attrmvcp -attr LOC -driven t:NX_IOB_I t:NX_IOB n:*");
 | 
			
		||||
			}
 | 
			
		||||
			run("opt -fast");
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue