⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tb_msp.vhd

📁 宇航级微处理器LEON2 2.2 VHDL源代码,很难找的.
💻 VHD
字号:
-------------------------------------------------------------------------------  This file is a part of the LEON VHDL model--  Copyright (C) 1999  European Space Agency (ESA)----  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 2 of the License, or--  (at your option) any later version.----  See the file COPYING for the full details of the license.-----------------------------------------------------------------------------   -- Entity:      tb_msp-- File:        tb_msp.vhd-- Author:      Jiri Gaisler - ESA/ESTEC-- Description: Test bench to run the microsparc test suite.------------------------------------------------------------------------------  -- Version control:-- 10-09-1999:  : First implemetation-- 26-09-1999:  : Release 1.0------------------------------------------------------------------------------  library IEEE;use IEEE.std_logic_1164.all;use work.iface.all;use work.leonlib.all;entity tb_msp isend; architecture behav of tb_msp iscomponent mspram  generic ( mspfile : string := "mspfile";	-- list of test files            romfile : string := "rom.dat");	-- rom boot file  port (      A 	   : in std_logic_vector(15 downto 0);    D 	   : inout std_logic_vector(31 downto 0);    romsel : in std_logic;    romoen : in std_logic;    ramsel : in std_logic;    ramoen : in std_logic;    write  : in std_logic_vector(3 downto 0);    rst    : out std_logic;    error  : in std_logic  );end component; signal clk : std_logic := '1';signal Rst    : std_logic;			-- Resetconstant romfile : string := "us2test/bootmsp.rom";constant mspfile : string := "us2test/mspfiles";signal address  : std_logic_vector(27 downto 0);signal data     : std_logic_vector(31 downto 0);signal ramsn    : std_logic_vector(3 downto 0);signal ramoen   : std_logic_vector(3 downto 0);signal wrn      : std_logic_vector(3 downto 0);signal romsn    : std_logic_vector(1 downto 0);signal iosn     : std_logic;signal oen      : std_logic;signal read     : std_logic;signal write    : std_logic;signal brdyn    : std_logic := '0';signal bexcn    : std_logic := '1';signal error    : std_logic;signal wdog     : std_logic;signal test     : std_logic := '0';signal pio	: std_logic_vector(15 downto 0);signal GND : std_logic := '0';signal VCC : std_logic := '1';signal NC : std_logic := 'Z';begin  clk <= not clk after 10 ns;  pio(1 downto 0) <= "11";	-- 32-bit data bus  pio(2) <= '1';		-- EDAC enable  wdog <= 'H';  error <= 'H';  p0 : leon port map (            rst, clk, 	    error, address, data, 	    ramsn, ramoen, wrn, romsn, iosn, oen, read, write, brdyn, 	    bexcn, pio, wdog, test);  mspram0 : mspram     generic map (mspfile => mspfile, romfile => romfile)    port map ( 	A   => address(15 downto 0), 	D(31 downto 0)   => data(31 downto 0), 	romsel => romsn(0),	romoen => oen,	ramsel => ramsn(0),	ramoen => ramoen(0),	write => wrn,	rst => rst,	error => error    );end ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -