File: zpu_top_pkg.vhd

package info (click to toggle)
uhd 3.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 107,272 kB
  • ctags: 57,231
  • sloc: cpp: 66,160; ansic: 59,349; python: 13,245; vhdl: 7,651; tcl: 2,668; sh: 1,634; makefile: 1,031; xml: 557; pascal: 230; csh: 94; asm: 20; perl: 11
file content (46 lines) | stat: -rw-r--r-- 1,389 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

library work;
use work.zpupkg.all;
use work.zpu_config.all;
use work.wishbone_pkg.all;

package zpu_top_pkg is
    component zpu_wb_bridge is
    port (	-- Native ZPU interface
            clk 				: in std_logic;
            areset 				: in std_logic;

            mem_req 			: in std_logic;
            mem_we				: in std_logic;
            mem_ack				: out std_logic; 
            mem_read 			: out std_logic_vector(wordSize-1 downto 0);
            mem_write 			: in std_logic_vector(wordSize-1 downto 0);
            out_mem_addr 		: in std_logic_vector(maxAddrBitIncIO downto 0);
            mem_writeMask		: in std_logic_vector(wordBytes-1 downto 0);
            
            -- Wishbone from ZPU
            zpu_wb_i			: in wishbone_bus_out;
            zpu_wb_o			: out wishbone_bus_in);
    end component;

    component zpu_system is
    generic(
            simulate		: boolean := false);
    port (	areset			: in std_logic;
            cpu_clk			: in std_logic;

            -- ZPU Control signals
            enable			: in std_logic;
            interrupt		: in std_logic;

            zpu_status		: out std_logic_vector(63 downto 0);

            -- wishbone interfaces
            zpu_wb_i		: in wishbone_bus_out;
            zpu_wb_o		: out wishbone_bus_in);
    end component;

end zpu_top_pkg;