URL
https://opencores.org/ocsvn/ata/ata/trunk
[/] [ata/] [trunk/] [rtl/] [vhdl/] [ocidec2/] [atahost_controller.vhd] - Diff between revs 26 and 32
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 26 |
Rev 32 |
Line 39... |
Line 39... |
-- rev.: 1.2 june 26th, 2001. Changed dPIOreq generation. Core did not support wishbone burst accesses to ATA-device.
|
-- rev.: 1.2 june 26th, 2001. Changed dPIOreq generation. Core did not support wishbone burst accesses to ATA-device.
|
-- rev.: 1.3 july 11th, 2001. Changed PIOreq & PIOack generation (made them synchronous).
|
-- rev.: 1.3 july 11th, 2001. Changed PIOreq & PIOack generation (made them synchronous).
|
--
|
--
|
-- CVS Log
|
-- CVS Log
|
--
|
--
|
-- $Id: atahost_controller.vhd,v 1.1 2002-02-18 14:30:48 rherveille Exp $
|
-- $Id: atahost_controller.vhd,v 1.2 2002-05-19 06:07:09 rherveille Exp $
|
--
|
--
|
-- $Date: 2002-02-18 14:30:48 $
|
-- $Date: 2002-05-19 06:07:09 $
|
-- $Revision: 1.1 $
|
-- $Revision: 1.2 $
|
-- $Author: rherveille $
|
-- $Author: rherveille $
|
-- $Locker: $
|
-- $Locker: $
|
-- $State: Exp $
|
-- $State: Exp $
|
--
|
--
|
-- Change History:
|
-- Change History:
|
Line 277... |
Line 277... |
end if;
|
end if;
|
end if;
|
end if;
|
end process gen_seldev;
|
end process gen_seldev;
|
|
|
-- generate PIOgo signal
|
-- generate PIOgo signal
|
gen_PIOgo: process(clk)
|
gen_PIOgo: process(clk, nReset)
|
begin
|
begin
|
if (clk'event and clk = '1') then
|
if (nReset = '0') then
|
|
dPIOreq <= '0';
|
|
PIOgo <= '0';
|
|
elsif (clk'event and clk = '1') then
|
|
if (rst = '1') then
|
|
dPIOreq <= '0';
|
|
PIOgo <= '0';
|
|
else
|
dPIOreq <= PIOreq and not PIOack;
|
dPIOreq <= PIOreq and not PIOack;
|
PIOgo <= (PIOreq and not dPIOreq) and IDEctrl_IDEen;
|
PIOgo <= (PIOreq and not dPIOreq) and IDEctrl_IDEen;
|
end if;
|
end if;
|
|
end
|
end process gen_PIOgo;
|
end process gen_PIOgo;
|
--
|
--
|
-- Hookup PIO access controller
|
-- Hookup PIO access controller
|
--
|
--
|
PIO_access_control: atahost_pio_actrl
|
PIO_access_control: atahost_pio_actrl
|
Line 332... |
Line 340... |
);
|
);
|
|
|
-- generate acknowledge
|
-- generate acknowledge
|
gen_ack: process(clk)
|
gen_ack: process(clk)
|
begin
|
begin
|
if (clk'event and clk = '1') then
|
if (clk'event and clk = '1') the
|
PIOack <= PIOdone or (PIOreq and not IDEctrl_IDEen); -- acknowledge when done or when IDE not enabled (discard request)
|
PIOack <= PIOdone or (PIOreq and not IDEctrl_IDEen); -- acknowledge when done or when IDE not enabled (discard request)
|
end if;
|
end if;
|
end process gen_ack;
|
end process gen_ack;
|
end architecture structural;
|
end architecture structural;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.