Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThank you very much for your valuable informations.
I've adjusted code and removed red warning in Modelsim with:
case state is
-- ...
when sexec =>
-- Read data
case data(7 downto 6) is
-- ...
-- Store
when "01" =>
we <= '1';
addr <= data(5 downto 0);
state <= sstore;
-- ...
end case;
when sstore =>
-- write to memory, data is ready next clock
data <= reg;
state <= sfetch;
when others => null;
end case;
I just moved: data <= reg; In the state sstore. So using high impedance Z signals in design is a worst practice? Thank you