jtag.vhd

来自「The GRLIB IP Library is an integrated se」· VHDL 代码 · 共 89 行

VHD
89
字号
------------------------------------------------------------------------------  This file is a part of the GRLIB VHDL IP LIBRARY--  Copyright (C) 2004 GAISLER RESEARCH----  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.--------------------------------------------------------------------------------- package: 	jtag-- File:	jtag.vhd-- Author:	Edvin Catovic - Gaisler Research-- Description:	JTAG components------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;library grlib;use grlib.amba.all;use grlib.tech.all;library gaisler;use gaisler.misc.all;package jtag iscomponent tap   generic (    tech   : integer := 0;        irlen  : integer range 2 to 8 := 4;    idcode : integer range 0 to 255 := 9;    id_msb : integer range 0 to 65536 := 0;    id_lsb : integer range 0 to 65536 := 0);  port (    rst  : in std_ulogic;    tck  : in std_ulogic;    tms  : in std_ulogic;    tdi  : in std_ulogic;    tdo  : out std_ulogic;     tapo_tck    : out std_ulogic;    tapo_tdi    : out std_ulogic;    tapo_inst   : out std_logic_vector(7 downto 0);    tapo_rst    : out std_ulogic;    tapo_capt   : out std_ulogic;    tapo_shft   : out std_ulogic;    tapo_upd    : out std_ulogic;    tapo_xsel1  : out std_ulogic;    tapo_xsel2  : out std_ulogic;    tapi_en1    : in std_ulogic;    tapi_tdo1   : in std_ulogic;    tapi_tdo2   : in std_ulogic    );end component;component ahbjtag   generic (    tech    : integer range 0 to NTECH := 0;    hindex  : integer := 0;    nsync : integer range 1 to 2 := 1;    idcode : integer range 0 to 255 := 9;    id_msb : integer range 0 to 65536 := 0;    id_lsb : integer range 0 to 65536 := 0;        ainst   : integer range 0 to 255 := 2;    dinst   : integer range 0 to 255 := 3);  port (    rst     : in  std_ulogic;    clk     : in  std_ulogic;    tck     : in  std_ulogic;    tms     : in  std_ulogic;    tdi     : in  std_ulogic;    tdo     : out std_ulogic;         ahbi    : in  ahb_mst_in_type;    ahbo    : out ahb_mst_out_type;    tapo_tck    : out std_ulogic;    tapo_tdi    : out std_ulogic;    tapo_inst   : out std_logic_vector(7 downto 0);    tapo_rst    : out std_ulogic;    tapo_capt   : out std_ulogic;    tapo_shft   : out std_ulogic;    tapo_upd    : out std_ulogic;    tapi_tdo    : in std_ulogic    );end component;      end;

⌨️ 快捷键说明

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