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

📄 jisuan.vhd

📁 本VHDL源代码由顶层模块、测频模块、驱动模块、计算模块、LCD显示模块、复位模块组成
💻 VHD
字号:
--/*JISUAN.VHD*/--计算转换模块
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

--  Uncomment the following lines to use the declarations that are
--  provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;

entity jisuan is
    Port (clk,rst:in std_logic;
	 		 bzclk,dcclk:in std_logic_vector(31 downto 0);
			 data:out std_logic_vector(31 downto 0);
			 dian:out integer range -10 to 10 );
end jisuan;

architecture Behavioral of jisuan is

component div is
    Port (clk,rst:in std_logic;
	 		 bei,chu:in std_logic_vector(31 downto 0);
			 shang:out std_logic_vector(31 downto 0);
			 dian:out integer range -10 to 10 );
end component div;
signal bei:std_logic_vector(31 downto 0);
signal chu,shang:std_logic_vector(31 downto 0);

begin
chu<=bzclk;
bei<=dcclk;
u1:div port map (clk=>clk,rst=>rst,bei=>bei,chu=>chu,shang=>shang,dian=>dian);

end Behavioral;

⌨️ 快捷键说明

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