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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user