Tetik
Member level 5
The line "if clLK = '1' then" should be "if rising_edge(clLK) then "
You want to make a decision only when the clock toggles from '0' to '1'. Not always when clLK is '1' (this infer a latch).
You want to make a decision only when the clock toggles from '0' to '1'. Not always when clLK is '1' (this infer a latch).