fix coeff calculation
This commit is contained in:
		| @@ -7,11 +7,13 @@ BEGIN | ||||
|   process(clock, reset) | ||||
|   begin | ||||
|     if reset = '1' then | ||||
|       counter <= (others => '1'); | ||||
|       counter <= (others => '0'); | ||||
|     elsif rising_edge(clock) then | ||||
|  | ||||
|       if en = '1' then | ||||
|         counter <= counter - 1; | ||||
|       end if; | ||||
|  | ||||
|     end if; | ||||
|   end process; | ||||
|  | ||||
| @@ -23,5 +25,5 @@ BEGIN | ||||
|       triggerOut <= '0'; | ||||
|     end if; | ||||
|   end process; | ||||
|          | ||||
|  | ||||
| END ARCHITECTURE studentVersion; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user