mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Fixed fdivsqrt to avoid going from done to busy without going through idle first
This commit is contained in:
		
							parent
							
								
									bedb3f95eb
								
							
						
					
					
						commit
						463a1e2b33
					
				| @ -110,7 +110,7 @@ module fdivsqrtfsm( | |||||||
|   always_ff @(posedge clk) begin |   always_ff @(posedge clk) begin | ||||||
|       if (reset | FlushE) begin |       if (reset | FlushE) begin | ||||||
|           state <= #1 IDLE;  |           state <= #1 IDLE;  | ||||||
|       end else if (IFDivStartE) begin  |       end else if ((state == IDLE) & IFDivStartE) begin  | ||||||
|           step <= cycles;  |           step <= cycles;  | ||||||
|           if (SpecialCaseE) state <= #1 DONE; |           if (SpecialCaseE) state <= #1 DONE; | ||||||
|           else              state <= #1 BUSY; |           else              state <= #1 BUSY; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user