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

📄 ahb_system.vhd

📁 vhdl实现的amba代码
💻 VHD
字号:
--*******************************************************************--**                                                             ****--**  AHB system generator                                       ****--**                                                             ****--**  Author: Federico Aglietti                                  ****--**          federico.aglietti@opencores.org                   ****--**                                                             ****--*******************************************************************--**                                                             ****--** Copyright (C) 2004 Federico Aglietti                        ****--**                    federico.aglietti@opencores.org         ****--**                                                             ****--** This source file may be used and distributed without        ****--** restriction provided that this copyright statement is not   ****--** removed from the file and that any derivative work contains ****--** the original copyright notice and the associated disclaimer.****--**                                                             ****--**     THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY     ****--** EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED   ****--** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS   ****--** FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR      ****--** OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,         ****--** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES    ****--** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE   ****--** GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR        ****--** BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF  ****--** LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT  ****--** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  ****--** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE         ****--** POSSIBILITY OF SUCH DAMAGE.                                 ****--**                                                             ****--*******************************************************************library ieee;use ieee.std_logic_arith.all;use ieee.std_logic_misc.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_1164.all;--use IEEE.std_logic_textio.all;use work.ahb_package.all;use work.ahb_configure.all;use work.ahb_components.all;entity ahb_system isport(																		hresetn: in std_logic;	hclk: in std_logic;	eot_int: out std_logic_vector(0 downto 0);	conf: in conf_type_v(0 downto 0);	remap: in std_logic	);end;architecture rtl of ahb_system issignal mst_out_arb_0_v: mst_in_v_t(0 downto 0);signal mst_in_arb_0_v: mst_out_v_t(0 downto 0);signal slv_out_arb_0_v: slv_in_v_t(0 downto 0);signal slv_in_arb_0_v: slv_out_v_t(0 downto 0);signal addr_arb_matrix: addr_matrix_t(0 downto 0);signal addr_ahbbrg_matrix: addr_matrix_t(1 downto 0);signal addr_apbbrg_matrix: addr_matrix_t(1 downto 0);signal ahb_mst_0_out: mst_out_t;signal ahb_mst_0_in: mst_in_t;signal ahb_slv_0_out: slv_out_t;signal ahb_slv_0_in: slv_in_t;signal dma_start : start_type_v(0 downto 0);signal m_wrap_out : wrap_out_v(0 downto 0);signal m_wrap_in : wrap_in_v(0 downto 0);signal s_wrap_out : wrap_out_v(0 downto 0);signal s_wrap_in : wrap_in_v(0 downto 0);signal zero : std_logic;signal no_conf_s : conf_type_t;constant no_conf_c: conf_type_t:= ('0',"0000","00000000000000000000000000000000");beginzero <= '0';no_conf_s <= no_conf_c;ahb_mst_0_in <= mst_out_arb_0_v(0);mst_in_arb_0_v(0) <= ahb_mst_0_out;ahb_slv_0_in <= slv_out_arb_0_v(0);slv_in_arb_0_v(0) <= ahb_slv_0_out;ahb_arb0: ahb_arbiter generic map(num_arb => 0,num_arb_msts => 1,num_slvs => 1,def_arb_mst => 0,alg_number => 0)port map(  hresetn => hresetn,  hclk => hclk,  remap => remap,  mst_in_v => mst_in_arb_0_v(0 downto 0),  mst_out_v => mst_out_arb_0_v(0 downto 0),  slv_in_v => slv_in_arb_0_v(0 downto 0),  slv_out_v => slv_out_arb_0_v(0 downto 0));ahb_mst0: ahb_mastergeneric map(	fifohempty_level => 1,	fifohfull_level => 7,	fifo_length => 8)port map (	hresetn => hresetn,	hclk => hclk,		mst_in => ahb_mst_0_in,	mst_out => ahb_mst_0_out,       	dma_start => dma_start(0),		m_wrap_out => m_wrap_out(0),	m_wrap_in => m_wrap_in(0),	eot_int => eot_int(0),	slv_running => zero,	mst_running => open);		ahb_mst0_wrap: mst_wrapgeneric map(--synopsys translate_offdump_file => "m0.log",dump_type => dump_all,--synopsys translate_onahb_max_addr => 4,m_const_lat_write => 2,m_const_lat_read => 2,m_write_burst => 0,m_read_burst => 0)port map(	hresetn => hresetn,	clk => hclk,		conf => conf(0),	dma_start => dma_start(0),		m_wrap_in => m_wrap_out(0),	m_wrap_out => m_wrap_in(0));ahb_slv0: ahb_slave_waitgeneric map(	num_slv => 0,	fifohempty_level => 1,	fifohfull_level => 7,	fifo_length => 8)port map (	hresetn => hresetn,	hclk => hclk,	remap => remap,	slv_in => ahb_slv_0_in,	slv_out => ahb_slv_0_out,       	s_wrap_out => s_wrap_out(0),	s_wrap_in => s_wrap_in(0),	mst_running => zero,	prior_in => zero,	slv_running => open,	slv_err => open);		ahb_slv0_wrap: slv_memgeneric map(--synopsys translate_offdump_file => "s0.log",dump_type => dump_all,--synopsys translate_onahb_max_addr => 4,s_const_lat_write => 2,s_const_lat_read => 2,s_write_burst => 0,s_read_burst => 0)port map(	hresetn => hresetn,	clk => hclk,			conf => no_conf_s,	dma_start => open,			s_wrap_in => s_wrap_out(0),	s_wrap_out => s_wrap_in(0));end rtl;

⌨️ 快捷键说明

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