-------------------------------------------------------------------------
-- Project: MIPS System controller
-- This file: 
--
-- Copyright (C) 2008 J. Ahrensfeld
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
--
-- For questions and ideas, please contact the author at jens@jayfield.org
--
--------------------------------------------------------------------------

library IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.NUMERIC_STD.ALL;

use work.async_types.all;

package async_defs is

	constant ts_flash : async_timespec_t :=
	(
		T_leadin			=> 10.0,
		T_pulse_rd			=> 120.0,
		T_pulse_wr			=> 70.0,
		T_leadout			=> 10.0,
		T_release			=> 40.0,
		T_pulse_rst			=> 80.0,
		T_pulse_page_rd		=> 30.0,
		can_page_rd			=> true,
		nbits_page_rd		=> 4,
		pol_cs				=> '1',
		pol_oe				=> '0',
		pol_we				=> '0',
		pol_be				=> '0',
		pol_rst				=> '0'
	);

	constant ts_usb : async_timespec_t :=
	(
		T_leadin			=> 10.0,
		T_pulse_rd			=> 60.0,
		T_pulse_wr			=> 60.0,
		T_leadout			=> 10.0,
		T_release			=> 80.0,
		T_pulse_rst			=> 80.0,
		T_pulse_page_rd		=> 00.0,
		can_page_rd			=> false,
		nbits_page_rd		=> 0,
		pol_cs				=> '0',
		pol_oe				=> '0',
		pol_we				=> '0',
		pol_be				=> '0',
		pol_rst				=> '0'
	);

	----------------------------------------------------------------------------------------------
	
end async_defs;
