Forum Discussion
Altera_Forum
Honored Contributor
15 years agoFSM problem
Heyy I'm trying to make a video game in vhdl on de0 board and I need help about the following FSM. No error or warning. Does anyone notice a mistake?? thankss. type XY_REG_TYPE is array (0 ...
Altera_Forum
Honored Contributor
15 years agoThe purspose of this process with a single constant assignment isn't well understandable, but because xy_reg is also assigned in the process FSM1, it's causing a "multiple driver" error. If you feel a need for multiple concurrent assignments to xy_reg, they have to be placed inside FSM1. For the general rules for signal assignments, consult a VHDL text book or tutorial.
Game: process (clk)
begin
if clk'event and clk = '1' then
xy_reg(1,1) <= '1';^
end if;
end process Game;