mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Clean verilog code from not used define block
This commit is contained in:
		
							parent
							
								
									d37cd267a5
								
							
						
					
					
						commit
						53bc499a90
					
				
					 2 changed files with 0 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -9,14 +9,8 @@ in
 | 
			
		|||
 | 
			
		||||
    always @(posedge clk)
 | 
			
		||||
	begin
 | 
			
		||||
`ifndef BUG
 | 
			
		||||
		out    <= out >> 1;
 | 
			
		||||
		out[7] <= in;
 | 
			
		||||
`else
 | 
			
		||||
 | 
			
		||||
		out    <= out << 1;
 | 
			
		||||
		out[7] <= in;
 | 
			
		||||
`endif
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
endmodule
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,15 +2,9 @@ module tristate (en, i, o);
 | 
			
		|||
    input en;
 | 
			
		||||
    input i;
 | 
			
		||||
    output reg o;
 | 
			
		||||
`ifndef BUG 
 | 
			
		||||
    
 | 
			
		||||
    always @(en or i)
 | 
			
		||||
		o <= (en)? i : 1'bZ;
 | 
			
		||||
`else
 | 
			
		||||
	
 | 
			
		||||
    always @(en or i)
 | 
			
		||||
		o <= (en)? ~i : 1'bZ;
 | 
			
		||||
`endif
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue