📄 ddr2_cpu.vhd
字号:
--megafunction wizard: %Altera SOPC Builder%
--GENERATION: STANDARD
--VERSION: WM1.0
--Legal Notice: (C)2006 Altera Corporation. All rights reserved. Your
--use of Altera Corporation's design tools, logic functions and other
--software and tools, and its AMPP partner logic functions, and any
--output files any of the foregoing (including device programming or
--simulation files), and any associated documentation or information are
--expressly subject to the terms and conditions of the Altera Program
--License Subscription Agreement or other applicable license agreement,
--including, without limitation, that your use is for the sole purpose
--of programming logic devices manufactured by Altera and sold by Altera
--or its authorized distributors. Please refer to the applicable
--agreement for further details.
-- turn off superfluous VHDL processor warnings
-- altera message_level Level1
-- altera message_off 10034 10035 10036 10037 10230 10240 10030
library altera;
use altera.altera_europa_support_lib.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
library std;
use std.textio.all;
entity cpu_0_jtag_debug_module_arbitrator is
port (
-- inputs:
signal clk : IN STD_LOGIC;
signal cpu_0_data_master_address_to_slave : IN STD_LOGIC_VECTOR (17 DOWNTO 0);
signal cpu_0_data_master_byteenable : IN STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_data_master_debugaccess : IN STD_LOGIC;
signal cpu_0_data_master_read : IN STD_LOGIC;
signal cpu_0_data_master_write : IN STD_LOGIC;
signal cpu_0_data_master_writedata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_instruction_master_address_to_slave : IN STD_LOGIC_VECTOR (17 DOWNTO 0);
signal cpu_0_instruction_master_latency_counter : IN STD_LOGIC;
signal cpu_0_instruction_master_read : IN STD_LOGIC;
signal cpu_0_jtag_debug_module_readdata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_jtag_debug_module_resetrequest : IN STD_LOGIC;
signal reset_n : IN STD_LOGIC;
-- outputs:
signal cpu_0_data_master_granted_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_read_data_valid_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_requests_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_granted_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_read_data_valid_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_requests_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_address : OUT STD_LOGIC_VECTOR (8 DOWNTO 0);
signal cpu_0_jtag_debug_module_begintransfer : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_byteenable : OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_jtag_debug_module_chipselect : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_debugaccess : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_readdata_from_sa : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_jtag_debug_module_reset : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_reset_n : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_resetrequest_from_sa : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_write : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_writedata : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal d1_cpu_0_jtag_debug_module_end_xfer : OUT STD_LOGIC
);
attribute auto_dissolve : boolean;
attribute auto_dissolve of cpu_0_jtag_debug_module_arbitrator : entity is FALSE;
end entity cpu_0_jtag_debug_module_arbitrator;
architecture europa of cpu_0_jtag_debug_module_arbitrator is
signal cpu_0_data_master_arbiterlock : STD_LOGIC;
signal cpu_0_data_master_arbiterlock2 : STD_LOGIC;
signal cpu_0_data_master_continuerequest : STD_LOGIC;
signal cpu_0_data_master_saved_grant_cpu_0_jtag_debug_module : STD_LOGIC;
signal cpu_0_instruction_master_arbiterlock : STD_LOGIC;
signal cpu_0_instruction_master_arbiterlock2 : STD_LOGIC;
signal cpu_0_instruction_master_continuerequest : STD_LOGIC;
signal cpu_0_instruction_master_saved_grant_cpu_0_jtag_debug_module : STD_LOGIC;
signal cpu_0_jtag_debug_module_allgrants : STD_LOGIC;
signal cpu_0_jtag_debug_module_allow_new_arb_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_any_continuerequest : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_addend : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_arb_counter_enable : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_share_counter : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_share_counter_next_value : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_share_set_values : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_winner : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_arbitration_holdoff_internal : STD_LOGIC;
signal cpu_0_jtag_debug_module_beginbursttransfer_internal : STD_LOGIC;
signal cpu_0_jtag_debug_module_begins_xfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_chosen_master_double_vector : STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_jtag_debug_module_chosen_master_rot_left : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_end_xfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_firsttransfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_grant_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_in_a_read_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_in_a_write_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_master_qreq_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_non_bursting_master_requests : STD_LOGIC;
signal cpu_0_jtag_debug_module_saved_chosen_master_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_slavearbiterlockenable : STD_LOGIC;
signal cpu_0_jtag_debug_module_slavearbiterlockenable2 : STD_LOGIC;
signal cpu_0_jtag_debug_module_waits_for_read : STD_LOGIC;
signal cpu_0_jtag_debug_module_waits_for_write : STD_LOGIC;
signal d1_reasons_to_wait : STD_LOGIC;
signal in_a_read_cycle : STD_LOGIC;
signal in_a_write_cycle : STD_LOGIC;
signal internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_jtag_debug_module_reset_n : STD_LOGIC;
signal last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module : STD_LOGIC;
signal last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module : STD_LOGIC;
signal wait_for_cpu_0_jtag_debug_module_counter : STD_LOGIC;
begin
process (clk, reset_n)
begin
if reset_n = '0' then
d1_reasons_to_wait <= std_logic'('0');
elsif clk'event and clk = '1' then
if (std_logic_vector'("00000000000000000000000000000001")) /= std_logic_vector'("00000000000000000000000000000000") then
d1_reasons_to_wait <= NOT cpu_0_jtag_debug_module_end_xfer;
end if;
end if;
end process;
cpu_0_jtag_debug_module_begins_xfer <= NOT d1_reasons_to_wait AND ((internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module OR internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module));
--assign cpu_0_jtag_debug_module_readdata_from_sa = cpu_0_jtag_debug_module_readdata so that symbol knows where to group signals which may go to master only, which is an e_assign
cpu_0_jtag_debug_module_readdata_from_sa <= cpu_0_jtag_debug_module_readdata;
internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module <= to_std_logic(((Std_Logic_Vector'(cpu_0_data_master_address_to_slave(17 DOWNTO 11) & std_logic_vector'("00000000000")) = std_logic_vector'("100000000000000000")))) AND ((cpu_0_data_master_read OR cpu_0_data_master_write));
--cpu_0_jtag_debug_module_arb_share_counter set values, which is an e_mux
cpu_0_jtag_debug_module_arb_share_set_values <= std_logic'('1');
--cpu_0_jtag_debug_module_non_bursting_master_requests mux, which is an e_mux
cpu_0_jtag_debug_module_non_bursting_master_requests <= ((internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module OR internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module) OR internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module) OR internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module;
--cpu_0_jtag_debug_module_arb_share_counter_next_value assignment, which is an e_assign
cpu_0_jtag_debug_module_arb_share_counter_next_value <= Vector_To_Std_Logic(A_WE_StdLogicVector((std_logic'(cpu_0_jtag_debug_module_firsttransfer) = '1'), (((std_logic_vector'("00000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_jtag_debug_module_arb_share_set_values))) - std_logic_vector'("000000000000000000000000000000001"))), A_WE_StdLogicVector((std_logic'(cpu_0_jtag_debug_module_arb_share_counter) = '1'), (((std_logic_vector'("00000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_jtag_debug_module_arb_share_counter))) - std_logic_vector'("000000000000000000000000000000001"))), std_logic_vector'("000000000000000000000000000000000"))));
--cpu_0_jtag_debug_module_allgrants all slave grants, which is an e_mux
cpu_0_jtag_debug_module_allgrants <= ((or_reduce(cpu_0_jtag_debug_module_grant_vector) OR or_reduce(cpu_0_jtag_debug_module_grant_vector)) OR or_reduce(cpu_0_jtag_debug_module_grant_vector)) OR or_reduce(cpu_0_jtag_debug_module_grant_vector);
--cpu_0_jtag_debug_module_end_xfer assignment, which is an e_assign
cpu_0_jtag_debug_module_end_xfer <= NOT ((cpu_0_jtag_debug_module_waits_for_read OR cpu_0_jtag_debug_module_waits_for_write));
--cpu_0_jtag_debug_module_arb_share_counter arbitration counter enable, which is an e_assign
cpu_0_jtag_debug_module_arb_counter_enable <= ((cpu_0_jtag_debug_module_end_xfer AND cpu_0_jtag_debug_module_allgrants)) OR ((cpu_0_jtag_debug_module_end_xfer AND NOT cpu_0_jtag_debug_module_non_bursting_master_requests));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -