1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-02-06 08:04:41 +00:00

[C64] 6510: eliminate latches

This commit is contained in:
Gyorgy Szombathelyi
2019-02-05 13:21:43 +01:00
parent 506cbec3f6
commit 3e25aa1b5c

View File

@@ -94,15 +94,17 @@ begin
end if;
end process;
process(ioDir, ioData, diIO)
process(clk)
begin
for i in 0 to 7 loop
if ioDir(i) = '0' then
currentIO(i) <= std_logic(diIO(i));
else
currentIO(i) <= ioData(i);
end if;
end loop;
if rising_edge(clk) then
for i in 0 to 7 loop
if ioDir(i) = '0' then
currentIO(i) <= std_logic(diIO(i));
else
currentIO(i) <= ioData(i);
end if;
end loop;
end if;
end process;
-- Cunnect zee wires