mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge branch 'main' of https://github.com/openhwgroup/cvw into dev
This commit is contained in:
		
						commit
						13390fffe7
					
				@ -33,6 +33,6 @@ module lzc #(parameter WIDTH = 1) (
 | 
				
			|||||||
  always_comb begin
 | 
					  always_comb begin
 | 
				
			||||||
    i = 0;
 | 
					    i = 0;
 | 
				
			||||||
    while (~num[WIDTH-1-i] & (i < WIDTH)) i = i+1;  // search for leading one
 | 
					    while (~num[WIDTH-1-i] & (i < WIDTH)) i = i+1;  // search for leading one
 | 
				
			||||||
    ZeroCnt = i[$clog2(WIDTH)-1:0];
 | 
					    ZeroCnt = i[$clog2(WIDTH+1)-1:0];
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
endmodule
 | 
					endmodule
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user