mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Merge pull request #1605 from YosysHQ/iopad_fix
iopad mapping should take care of existing io buffers
This commit is contained in:
		
						commit
						6620b4e94e
					
				
					 2 changed files with 22 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -234,6 +234,9 @@ struct IopadmapPass : public Pass {
 | 
			
		|||
						SigBit wire_bit(wire, i);
 | 
			
		||||
						Cell *tbuf_cell = nullptr;
 | 
			
		||||
 | 
			
		||||
						if (skip_wire_bits.count(wire_bit))
 | 
			
		||||
							continue;
 | 
			
		||||
 | 
			
		||||
						if (tbuf_bits.count(wire_bit))
 | 
			
		||||
							tbuf_cell = tbuf_bits.at(wire_bit);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								tests/arch/xilinx/bug1605.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/arch/xilinx/bug1605.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
read_verilog <<EOT
 | 
			
		||||
module top(inout io);
 | 
			
		||||
    wire in;
 | 
			
		||||
    wire t;
 | 
			
		||||
    wire o;
 | 
			
		||||
 | 
			
		||||
    IOBUF IOBUF(
 | 
			
		||||
      .I(in),
 | 
			
		||||
      .T(t),
 | 
			
		||||
      .IO(io),
 | 
			
		||||
      .O(o)
 | 
			
		||||
    );
 | 
			
		||||
endmodule
 | 
			
		||||
EOT
 | 
			
		||||
 | 
			
		||||
synth_xilinx
 | 
			
		||||
cd top
 | 
			
		||||
select -assert-count 1 t:IOBUF
 | 
			
		||||
select -assert-none t:* t:IOBUF %d
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue