diff --git a/projects/mips_sys/src/sys_types.vhd b/projects/mips_sys/src/sys_types.vhd new file mode 100644 index 0000000..5887129 --- /dev/null +++ b/projects/mips_sys/src/sys_types.vhd @@ -0,0 +1,73 @@ +------------------------------------------------------------------------- +-- 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 . +-- +-- 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; + +package sys_types is + + type async_timespec_t is record + ncyc_access : natural; + ncyc_pulse_rd : natural; + ncyc_pulse_wr : natural; + ncyc_cs_hold : natural; + ncyc_release : natural; + ncyc_pulse_rst : natural; + pol_cs : std_logic; + pol_oe : std_logic; + pol_we : std_logic; + pol_rst : std_logic; + end record; + + constant ts_flash : async_timespec_t := + ( + ncyc_access => 1, + ncyc_pulse_rd => 12, + ncyc_pulse_wr => 7, + ncyc_cs_hold => 1, + ncyc_release => 1, + ncyc_pulse_rst => 8, + pol_cs => '1', + pol_oe => '0', + pol_we => '0', + pol_rst => '0' + ); + + constant ts_usb : async_timespec_t := + ( + ncyc_access => 1, + ncyc_pulse_rd => 6, + ncyc_pulse_wr => 6, + ncyc_cs_hold => 1, + ncyc_release => 6, + ncyc_pulse_rst => 8, + pol_cs => '0', + pol_oe => '0', + pol_we => '0', + pol_rst => '0' + ); + + ---------------------------------------------------------------------------------------------- + +end sys_types;