start gpio
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user