现代电子技术综合实验报告—简易数字频率计(3)
-- Create Date: 10:32:01 09/15/2011 -- Design Name:
-- Module Name: latch - 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.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM;
--use UNISIM.VComponents.all;
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);
现代电子技术综合实验报告—简易数字频率计,基于XILINX的FPGA设计的简易频率计,用ISE仿真,采用VHDL编程,
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的信号实现对六位已经锁存的计数结果的扫描输出
显示控制整体电路如下图:
现代电子技术综合实验报告—简易数字频率计,基于XILINX的FPGA设计的简易频率计,用ISE仿真,采用VHDL编程,
源程序:
---------------------------------------------------------------------------------- -- Company: -- Engineer: --
-- Create Date: 10:39:58 03/24/2011 -- Design Name:
-- Module Name: disp_module - 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.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM;
--use UNISIM.VComponents.all;
现代电子技术综合实验报告—简易数字频率计,基于XILINX的FPGA设计的简易频率计,用ISE仿真,采用VHDL编程,
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);
…… 此处隐藏:1985字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [资格考试]石油钻采专业设备项目可行性研究报告编
- [资格考试]2012-2013学年度第二学期麻风病防治知
- [资格考试]道路勘测设计 绪论
- [资格考试]控烟戒烟知识培训资料
- [资格考试]建设工程安全生产管理(三类人员安全员
- [资格考试]photoshop制作茶叶包装盒步骤平面效果
- [资格考试]授课进度计划表封面(09-10下施工)
- [资格考试]麦肯锡卓越工作方法读后感
- [资格考试]2007年广西区农村信用社招聘考试试题
- [资格考试]软件实施工程师笔试题
- [资格考试]2014年初三数学复习专练第一章 数与式(
- [资格考试]中国糯玉米汁饮料市场发展概况及投资战
- [资格考试]塑钢门窗安装((专项方案)15)
- [资格考试]初中数学答题卡模板2
- [资格考试]2015-2020年中国效率手册行业市场调查
- [资格考试]华北电力大学学习实践活动领导小组办公
- [资格考试]溃疡性结肠炎研究的新进展
- [资格考试]人教版高中语文1—5册(必修)背诵篇目名
- [资格考试]ISO9001-2018质量管理体系最新版标准
- [资格考试]论文之希尔顿酒店集团进入中国的战略研
- 全国中小学生转学申请表
- 《奇迹暖暖》17-支2文学少女小满(9)公
- 2019-2020学年八年级地理下册 第六章
- 2005年高考试题——英语(天津卷)
- 无纺布耐磨测试方法及标准
- 建筑工程施工劳动力安排计划
- (目录)中国中央空调行业市场深度调研分
- 中国期货价格期限结构模型实证分析
- AutoCAD 2016基础教程第2章 AutoCAD基
- 2014-2015学年西城初三期末数学试题及
- 机械加工工艺基础(完整版)
- 归因理论在管理中的应用[1]0
- 突破瓶颈 实现医院可持续发展
- 2014年南京师范大学商学院决策学招生目
- 现浇箱梁支架预压报告
- Excel_2010函数图表入门与实战
- 人教版新课标初中数学 13.1 轴对称 (
- Visual Basic 6.0程序设计教程电子教案
- 2010北京助理工程师考试复习《建筑施工
- 国外5大医疗互联网模式分析




