📄 pc.vhd
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date: 22:23:35 12/16/2007 -- Design Name: -- Module Name: pc - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.numeric_std.ALL;use IEEE.std_logic_signed.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity pc is Port ( clk : in STD_LOGIC; rst : in STD_LOGIC; pc_in : in signed (31 downto 0); pc_out : out signed (31 downto 0));end pc;architecture Behavioral of pc isbegin process(clk,rst)
begin
if (rst='1') then
pc_out <= X"80020000";
elsif (rising_edge(clk)) then
pc_out <= pc_in;
end if;
end process;end Behavioral;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -