mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog <<EOT
 | 
						|
 | 
						|
module bb (...);
 | 
						|
parameter A = "abc";
 | 
						|
parameter B = 1;
 | 
						|
parameter C = 2;
 | 
						|
input a;
 | 
						|
output b;
 | 
						|
endmodule
 | 
						|
 | 
						|
module top (...);
 | 
						|
input a;
 | 
						|
output b;
 | 
						|
bb #("def", 3) my_bb (a, b);
 | 
						|
endmodule
 | 
						|
 | 
						|
EOT
 | 
						|
 | 
						|
hierarchy -top top
 | 
						|
dump
 | 
						|
 | 
						|
select -assert-count 1 t:bb r:A=def %i
 | 
						|
select -assert-count 1 t:bb r:B=3 %i
 |