mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	test: add attribute-before-stmt test from @nakengelhardt
This commit is contained in:
		
							parent
							
								
									1c117ac023
								
							
						
					
					
						commit
						95dcd7e785
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		|  | @ -41,3 +41,18 @@ module test (); | |||
| endmodule | ||||
| EOT | ||||
| select -assert-none a:* | ||||
| 
 | ||||
| 
 | ||||
| design -reset | ||||
| read_verilog <<EOT | ||||
| module test (); | ||||
| 	localparam y = 1; | ||||
| 	reg x = 1'b0; | ||||
| 	always @(*) begin | ||||
| 		if (y) | ||||
| 			(* foo *) x <= 1'b1; | ||||
| 		else | ||||
| 			(* bar *) x = 1'b0; | ||||
| 	end | ||||
| endmodule | ||||
| EOT | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue