URL
https://opencores.org/ocsvn/marca/marca/trunk
Subversion Repositories marca
[/] [marca/] [trunk/] [vhdl/] [decode_ent.vhd] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
-- This file is part of the marca processor. -- Copyright (C) 2007 Wolfgang Puffitsch -- This program is free software; you can redistribute it and/or modify it -- under the terms of the GNU Library General Public License as published -- by the Free Software Foundation; either version 2, 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 -- Library General Public License for more details. -- You should have received a copy of the GNU Library General Public -- License along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA ------------------------------------------------------------------------------- -- MARCA decode stage ------------------------------------------------------------------------------- -- entity definition for the instruction-decode pipeline stage ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Wolfgang Puffitsch -- Computer Architecture Lab, Group 3 ------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; use work.marca_pkg.all; entity decode is port ( clock : in std_logic; reset : in std_logic; hold : in std_logic; stall : in std_logic; pc_in : in std_logic_vector(REG_WIDTH-1 downto 0); pc_out : out std_logic_vector(REG_WIDTH-1 downto 0); instr : in std_logic_vector(PDATA_WIDTH-1 downto 0); src1_in : in std_logic_vector(REG_COUNT_LOG-1 downto 0); src1_out : out std_logic_vector(REG_COUNT_LOG-1 downto 0); src2_in : in std_logic_vector(REG_COUNT_LOG-1 downto 0); src2_out : out std_logic_vector(REG_COUNT_LOG-1 downto 0); dest_in : in std_logic_vector(REG_COUNT_LOG-1 downto 0); dest_out : out std_logic_vector(REG_COUNT_LOG-1 downto 0); aop : out ALU_OP; mop : out MEM_OP; iop : out INTR_OP; op1 : out std_logic_vector(REG_WIDTH-1 downto 0); op2 : out std_logic_vector(REG_WIDTH-1 downto 0); imm : out std_logic_vector(REG_WIDTH-1 downto 0); unit : out UNIT_SELECTOR; target : out TARGET_SELECTOR; wr_ena : in std_logic; wr_dest : in std_logic_vector(REG_COUNT_LOG-1 downto 0); wr_val : in std_logic_vector(REG_WIDTH-1 downto 0)); end decode;
Go to most recent revision | Compare with Previous | Blame | View Log