📄 full_1c20.vhd
字号:
--megafunction wizard: %Altera SOPC Builder%
--GENERATION: STANDARD
--VERSION: WM1.0
--Copyright (C) 1991-2004 Altera Corporation
--Any megafunction design, and related net list (encrypted or decrypted),
--support information, device programming or simulation file, and any other
--associated documentation or information provided by Altera or a partner
--under Altera's Megafunction Partnership Program may be used only to
--program PLD devices (but not masked PLD devices) from Altera. Any other
--use of such megafunction design, net list, support information, device
--programming or simulation file, or any other related documentation or
--information is prohibited for any other purpose, including, but not
--limited to modification, reverse engineering, de-compiling, or use with
--any other silicon devices, unless such use is explicitly licensed under
--a separate agreement with Altera or a megafunction partner. Title to
--the intellectual property, including patents, copyrights, trademarks,
--trade secrets, or maskworks, embodied in any such megafunction design,
--net list, support information, device programming or simulation file, or
--any other related documentation or information provided by Altera or a
--megafunction partner, remains with Altera, the megafunction partner, or
--their respective licensors. No other licenses, including any licenses
--needed under any third party's intellectual property, are provided herein.
--Copying or modifying any file, or portion thereof, to which this notice
--is attached violates this copyright.
library altera_vhdl_support;
use altera_vhdl_support.altera_vhdl_support_lib.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity bswap_cpu_s1_arbitrator is
port (
-- inputs:
signal bswap_cpu_s1_result : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal bswap_cpu_s1_select : IN STD_LOGIC;
signal cpu_custom_instruction_master_combo_dataa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_custom_instruction_master_combo_datab : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
-- outputs:
signal bswap_cpu_s1_dataa : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal bswap_cpu_s1_datab : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal bswap_cpu_s1_result_from_sa : OUT STD_LOGIC_VECTOR (31 DOWNTO 0)
);
attribute auto_dissolve : boolean;
attribute auto_dissolve of bswap_cpu_s1_arbitrator : entity is FALSE;
end entity bswap_cpu_s1_arbitrator;
architecture europa of bswap_cpu_s1_arbitrator is
begin
bswap_cpu_s1_dataa <= cpu_custom_instruction_master_combo_dataa;
bswap_cpu_s1_datab <= cpu_custom_instruction_master_combo_datab;
--assign bswap_cpu_s1_result_from_sa = bswap_cpu_s1_result so that symbol knows where to group signals which may go to master only, which is an e_assign
bswap_cpu_s1_result_from_sa <= bswap_cpu_s1_result;
end europa;
library altera_vhdl_support;
use altera_vhdl_support.altera_vhdl_support_lib.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity button_pio_s1_arbitrator is
port (
-- inputs:
signal button_pio_s1_irq : IN STD_LOGIC;
signal button_pio_s1_readdata : IN STD_LOGIC_VECTOR (3 DOWNTO 0);
signal clk : IN STD_LOGIC;
signal cpu_data_master_address_to_slave : IN STD_LOGIC_VECTOR (24 DOWNTO 0);
signal cpu_data_master_read : IN STD_LOGIC;
signal cpu_data_master_waitrequest : IN STD_LOGIC;
signal cpu_data_master_write : IN STD_LOGIC;
signal cpu_data_master_writedata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal d2_reset_n : IN STD_LOGIC;
-- outputs:
signal button_pio_s1_address : OUT STD_LOGIC_VECTOR (1 DOWNTO 0);
signal button_pio_s1_chipselect : OUT STD_LOGIC;
signal button_pio_s1_irq_from_sa : OUT STD_LOGIC;
signal button_pio_s1_readdata_from_sa : OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
signal button_pio_s1_reset_n : OUT STD_LOGIC;
signal button_pio_s1_write_n : OUT STD_LOGIC;
signal button_pio_s1_writedata : OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_data_master_granted_button_pio_s1 : OUT STD_LOGIC;
signal cpu_data_master_qualified_request_button_pio_s1 : OUT STD_LOGIC;
signal cpu_data_master_requests_button_pio_s1 : OUT STD_LOGIC;
signal d1_button_pio_s1_end_xfer : OUT STD_LOGIC
);
attribute auto_dissolve : boolean;
attribute auto_dissolve of button_pio_s1_arbitrator : entity is FALSE;
end entity button_pio_s1_arbitrator;
architecture europa of button_pio_s1_arbitrator is
signal button_pio_s1_begins_xfer : STD_LOGIC;
signal button_pio_s1_end_xfer : STD_LOGIC;
signal button_pio_s1_in_a_read_cycle : STD_LOGIC;
signal button_pio_s1_in_a_write_cycle : STD_LOGIC;
signal button_pio_s1_waits_for_read : STD_LOGIC;
signal button_pio_s1_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_data_master_granted_button_pio_s1 : STD_LOGIC;
signal internal_cpu_data_master_qualified_request_button_pio_s1 : STD_LOGIC;
signal internal_cpu_data_master_requests_button_pio_s1 : STD_LOGIC;
signal wait_for_button_pio_s1_counter : STD_LOGIC;
begin
process (clk, d2_reset_n)
begin
if d2_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 button_pio_s1_end_xfer;
end if;
end if;
end process;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -