Archived
1
0

start gpio

This commit is contained in:
2024-04-17 14:20:36 +02:00
parent 8a64f5c04b
commit 1b569b2b42
23 changed files with 7609 additions and 222 deletions

View File

@@ -17,17 +17,46 @@
-- Read registers
-- 00, data register provides the values detected on the lines.
--
signal addresses is unsigned(32 downto 0);
signal bRead is std_ulogic;
signal bWrite is std_ulogic;
ARCHITECTURE studentVersion OF ahbGpio IS
BEGIN
process(hReset_n, hClk) begin
if hReset_n = '1' then
-- AHB-Lite
hRData <= (OTHERS => '0');
hReady <= '0';
hResp <= '0';
-- Out
ioOut <= (OTHERS => '0');
ioEn <= (OTHERS => '0');
addresses <= (OTHERS => '0');
bRead <= '0';
bWrite <= '1';
elsif rising_edge(hClk) then
if hSel = '1' then
CASE hAddr is
WHEN 00 =>
WHEN 01 =>
WHEN OTHERS
end CASE;
end if;
end if;
end process;
-- AHB-Lite
hRData <= (OTHERS => '0');
hReady <= '0';
hResp <= '0';
-- hRData <= (OTHERS => '0');
-- hReady <= '0';
-- hResp <= '0';
-- Out
ioOut <= (OTHERS => '0');
ioEn <= (OTHERS => '0');
-- ioOut <= (OTHERS => '0');
-- ioEn <= (OTHERS => '0');
END ARCHITECTURE studentVersion;