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

📄 tran_reg.vhd

📁 This is is a bridge IP core to interface the Tensilica PIF bus protocol with the OpenCores WishBone.
💻 VHD
字号:
library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;entity tran_reg is	port (			clk 	: in std_logic;			rst 	: in std_logic;			En 	: in std_logic;			Num_i : in integer range 0 to 15;			Num_o	: out integer range 0 to 15			);end tran_reg;architecture Behavioral of tran_reg issignal temp : integer range 0 to 15;begin	process (clk, rst, En, temp)	begin		if rst = '1' then			temp <= 0;		elsif (clk'event and clk = '1') then			if En = '1' then 				temp <= Num_i;			else				temp <= temp;			end if;		end if;	end process;		Num_o <= temp;end Behavioral;

⌨️ 快捷键说明

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