mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			236 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			236 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog <<EOT
 | 
						|
 | 
						|
module top;
 | 
						|
	localparam a = $sformatf("0x%x", 8'h5A);
 | 
						|
	localparam b = $sformatf("%d", 4'b011);
 | 
						|
	generate
 | 
						|
		if (a != "0x5a") $error("a incorrect!");
 | 
						|
		if (b != "3") $error("b incorrect!");
 | 
						|
	endgenerate
 | 
						|
endmodule
 | 
						|
 | 
						|
EOT
 |