mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Fix INIT for variable length SRs that have been bumped up one
This commit is contained in:
		
							parent
							
								
									24553326dd
								
							
						
					
					
						commit
						f239cb821e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -106,7 +106,7 @@ module \$__SHREG_ (input C, input D, input [31:0] L, input E, output Q); | ||||||
|       else begin |       else begin | ||||||
|         // For variable length, bump up to the next length |         // For variable length, bump up to the next length | ||||||
|         // because we can't access Q31 |         // because we can't access Q31 | ||||||
|         \$__SHREG_ #(.DEPTH(DEPTH+1), .INIT(INIT), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) _TECHMAP_REPLACE_ (.C(C), .D(D), .L(L), .E(E), .Q(Q)); |         \$__SHREG_ #(.DEPTH(DEPTH+1), .INIT({INIT,1'b0}), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) _TECHMAP_REPLACE_ (.C(C), .D(D), .L(L), .E(E), .Q(Q)); | ||||||
|       end |       end | ||||||
|     end  |     end  | ||||||
|     else begin |     else begin | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue