信息与通信]现代电子技术综合实验报告—简易数字频率计内容摘要:

carry_out =39。 139。 else t = t + 1。 carry_out =39。 039。 end if。 end if。 end if。 end process。 process(t) begin case t is when 0 = count_out =0000。 when 1 = count_out =0001。 when 2 = count_out =0010。 when 3 = count_out =0011。 when 4 = count_out =0100。 when 5 = count_out =0101。 when 6 = count_out =0110。 when 7 = count_out =0111。 when 8 = count_out =1000。 when 9 = count_out =1001。 end case。 end process。 end Behavioral。 仿真测试  锁存器 实现了对六位计数结果和溢出信号 over 的锁存功能 源程序: Company: Engineer: Create Date: 10:32:01 09/15/2020 Design Name: Module Name: latch Behavioral Project Name: Target Devices: Tool versions: Description: Dependencies: Revision: Revision File Created Additional Comments: library IEEE。 use。 use。 use。 Unment the following library declaration if instantiating any Xilinx primitives in this code. library UNISIM。 use。 entity latch is Port ( latchin : in STD_LOGIC。 overin : in STD_LOGIC。 numin1 : in STD_LOGIC_VECTOR (3 downto 0)。 numin2 : in STD_LOGIC_VECTOR (3 downto 0)。 numin3 : in STD_LOGIC_VECTOR (3 downto 0)。 numin4 : in STD_LOGIC_VECTOR (3 downto 0)。 numin5 : in STD_LOGIC_VECTOR (3 downto 0)。 numin6 : in STD_LOGIC_VECTOR (3 downto 0)。 overout : out STD_LOGIC。 numout1 : out STD_LOGIC_VECTOR (3 downto 0)。 numout2 : out STD_LOGIC_VECTOR (3 downto 0)。 numout3 : out STD_LOGIC_VECTOR (3 downto 0)。 numout4 : out STD_LOGIC_VECTOR (3 downto 0)。 numout5 : out STD_LOGIC_VECTOR (3 downto 0)。 numout6 : out STD_LOGIC_VECTOR (3 downto 0))。 end latch。 architecture Behavioral of latch is begin process(latchin,overin ,numin1,numin2,numin3,numin4,numin5,numin6) begin if rising_edge(latchin) then numout1 = numin1。 numout2 = numin2。 numout3 = numin3。 numout4 = numin4。 numout5 = numin5。 numout6 = numin6。 overout = overin。 end if。 end process。 end Behavioral。  显示控制 用频率 1KHz 的信号实现对六位已经锁存的计数结果的扫描输出 显示控制整体电路如下图: 源程序: Company: Engineer: Create Date: 10:39:58 03/24/2020 Design Name: Module Name: disp_module Behavioral Project Name: Target Devices: Tool versions: Description: Dependencies: Revision: Revision File Created Additional Comments: library IEEE。 use。 use。 use。 Unment the following library declaration if instantiating any Xilinx primitives in this code. library UNISIM。 use。 entity disp_module is Port ( f1khz : in STD_LOGIC。 q_over : in STD_LOGIC。 freq_value0 : in STD_LOGIC_VECTOR (3 downto 0)。 freq_value1 : in STD_LOGIC_VECTOR (3 downto 0)。 freq_value2 : in STD_LOGIC_VECTOR (3 downto 0)。 freq_value3 : in STD_LOGIC_VECTOR (3 downto 0)。 freq_value4 : in STD_LOGIC_VECTOR (3 downto 0)。 freq_value5 : in STD_LOGIC_VECTOR (3 downto 0)。 se1 : in STD_LOGIC。 se10 : in STD_LOGIC。 se100 : in STD_LOGIC。 dp1 : in STD_LOGIC。 dp2 : in STD_LOGIC。 G : out STD_LOGIC。 led : out STD_LOGIC_VECTOR (6 downto 0)。 sel : out STD_LOGIC_VECTOR (2 downto 0)。 dp : out STD_LOGIC)。 end disp_module。 architecture Behavioral of disp_module is signal sel1: STD_LOGIC_VECTOR (2 downto 0)。 signal hide1: STD_LOGIC。 signal Freq_out1: STD_LOGIC_VECTOR (3 downto 0)。 COMPONENT xsxiaoshudian Port ( sel : in STD_LOGIC_VECTOR (2 downto 0)。 se1 : in STD_LOGIC。 se10 : in STD_LOGIC。 se100 : in STD_LOGIC。 dp : out STD_LOGIC)。 END COMPONENT。 COMPONENT xsjsq Port ( clk : in STD_LOGIC。 sel : out STD_LOGIC_VECTOR (2 downto 0))。 END COMPONENT。 COMPONENT xsxydl Port ( Freq_value0 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value1 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value2 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value3 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value4 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value5 : in STD_LOGIC_VECTOR (3 downto 0)。 q_over : in STD_LOGIC。 sel : in STD_LOGIC_VECTOR (2 downto 0)。 dp1 : in STD_LOGIC。 dp2 : in STD_LOGIC。 hide : out STD_LOGIC)。 END COMPONENT。 COMPONENT shujuxuanze Port ( Freq_value0 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value1 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value2 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value3 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value4 : in STD_LOGIC_VECTOR (3 downto 0)。 Freq_value5 : in STD_LOGIC_VECTOR (3 downto 0)。 sel : in STD_LOGIC_VECTOR (2 downto 0)。 Freq_out : out STD_LOGIC_VECTOR (3 downto 0))。 END COMPONENT。 COMPONENT yimaqi Port ( Freq_out : in。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。