mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Correction and optimization of nowrshmsk
This makes tests/verilog/dynamic_range_lhs.v pass, after ensuring that nowrshmsk is actually tested. Stride is extracted from indexing of two-dimensional packed arrays and variable slices on the form dst[i*stride +: width] = src, and is used to optimize the generated CASE block. Also uses less confusing variable names for indexing of lhs wires.
This commit is contained in:
		
							parent
							
								
									1ddb0892c1
								
							
						
					
					
						commit
						2cab4ff173
					
				
					 2 changed files with 113 additions and 45 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| module gate( | ||||
|     output reg [`LEFT:`RIGHT] out_u, out_s, | ||||
|     (* nowrshmsk = `ALT *) | ||||
|     output reg [`LEFT:`RIGHT] out_u, out_s, | ||||
|     input wire data, | ||||
|     input wire [1:0] sel1, sel2 | ||||
| ); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue