mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Add a quick testcase for unknown modules as inout
This commit is contained in:
		
							parent
							
								
									a265a84632
								
							
						
					
					
						commit
						705e520a52
					
				
					 1 changed files with 24 additions and 2 deletions
				
			
		|  | @ -80,9 +80,8 @@ miter -equiv -flatten -make_assert -make_outputs gold gate miter | |||
| sat -verify -prove-asserts -show-ports miter | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| design -reset | ||||
| read_verilog -icells <<EOT | ||||
| read_verilog <<EOT | ||||
| module top(input d, c, (* init = 3'b011 *) output reg [2:0] q); | ||||
| (* submod="bar" *) DFF s1(.D(d), .C(c), .Q(q[1])); | ||||
| DFF s2(.D(d), .C(c), .Q(q[0])); | ||||
|  | @ -100,3 +99,26 @@ proc | |||
| submod | ||||
| dffinit -ff DFF Q INIT | ||||
| check -noinit -assert | ||||
| 
 | ||||
| 
 | ||||
| design -reset | ||||
| read_verilog <<EOT | ||||
| module top(input d, c, output reg [2:0] q); | ||||
| (* submod="bar" *) DFF s1(.D(d), .C(c), .Q(q[1])); | ||||
| DFF s2(.D(d), .C(c), .Q(q[0])); | ||||
| DFF s3(.D(d), .C(c), .Q(q[2])); | ||||
| endmodule | ||||
| EOT | ||||
| 
 | ||||
| hierarchy -top top | ||||
| proc | ||||
| 
 | ||||
| submod | ||||
| flatten | ||||
| 
 | ||||
| read_verilog <<EOT | ||||
| module DFF(input D, C, output Q); | ||||
| endmodule | ||||
| EOT | ||||
| 
 | ||||
| check -assert | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue