基于vhdl的数字时钟论文内容摘要:
VHDL,模拟器对编辑后的程序进行模拟,如果达不到设计要求,则可以重新修改程序,直到通过功能模拟。 (3) 逻辑综合与优化 将通过功能模拟的程序放到 VHDL 编译器中,进行逻辑综合与优化。 (4) 门级模拟对电路用 VHDL。 仿真器仿真。 可对门级电路的延时、定时状态、驱动能力等进行仿真。 如不符合要求,可重复步骤 (3),再门级模拟,直到符合要求止。 (5) 版图生成 用相应的软件处理后,就可以拿去制版。 第 三 章 数字 电子钟的工作原理 系统设计方案 顶层原理图 秒和分钟计数器 功 能: 60 进制计数器 接 口: clk 时钟输入 qout1个位 BCD 输出 qout2十位 BCD 输出 carry进位信号输出 library ieee。 use。 use。 use。 entity fen60 is port (clk : in std_logic。 rst : in std_logic。 qout1 : out std_logic_vector(3 downto 0)。 qout2 : out std_logic_vector(3 downto 0)。 carry : out std_logic )。 end fen60。 architecture behave of fen60 is signal tem1:std_logic_vector(3 downto 0)。 signal tem2:std_logic_vector(3 downto 0)。 begin process(clk,rst) begin if(rst=39。 039。 )then tem1=0000。 tem2=0000。 elsif clk39。 event and clk=39。 139。 then if tem1=1001 then tem1=0000。 if tem2=0101 then tem2=0000。 carry=39。 139。 else tem2=tem2+1。 carry=39。 039。 end if。 else tem1=tem1+1。 end if。 end if。 qout1=tem1。 qout2=tem2。 end process。 end behave。 小时计数器 实体名: fen24 功 能: 24 进制计数器 接 口: clk 时钟输入 qout1个位 BCD 输出 qout2十位 BCD 输出 carry进位信号输出 library ieee。 use。 use。 use。 entity fen24 is port (clk : in std_logic。 rst : in std_logic。 qout1 : out std_logic_vector(3 downto 0)。 qout2 : out std_logic_vector(3 downto 0)。 carry : out std_logic )。 end fen24。 architecture behave of fen24 is signal tem1:std_logic_vector(3 downto 0)。 signal tem2:std_logic_vector(3 downto 0)。 begin process(clk,rst) begin if(rst=39。 039。 )then tem1=0010。 tem2=0001。 elsif clk39。 event and clk=39。 139。 then if (tem2=0010 and tem1=0011) then tem1=0000。 tem2=0000。 carry=39。 139。 else carry=39。 039。 if tem1=1001 then tem1=0000。 if tem2=1001 then tem2=0000。 else tem2=tem2+1。 end if。 else tem1=tem1+1。 end if。 end if。 end if。 qout1=tem1。 qout2=tem2。 end process。 end behave。 六选一的控制电路 实体名: sel 功 能:实现六个数码显示管扫描显示 接 口: clk 时钟输入 qin1第一个数码显示管要显示内容。基于vhdl的数字时钟论文
相关推荐
end if。 elsif(count1660)then count=count+1。 enhour_1=39。 039。 after 100 ns。 else count=0000000。 end if。 end if。 end process。 end fun。 模块:用来对时进行计数,当记到计数器的低四位为 1001 时,若高三位小于 010 时,则时计数器加 7,目的是使计数值变为
中所有的对顶角、同位角、内错角和同旁内角。 1 2 3 4 5 6 7 8 例 1 如图 1- 2,直线 DE截 AB,AC,构成 8个角。 指出所有的同位角、内错角和同旁内角。 1 2 3 4 5 6 7 8 A B C D E 如图:两只手的食子和拇指在同一平面内,它们构成的一对角可以看成是什么角 ?类似地,你还能用两只手的手指构成同位角和同旁内角吗 ? 例 2
case a is when 00 = p1=c。 当 a 为 0 时,将 c 的值赋给 p1。 when 01 = p2=c。 当 a 为 1 时,将 c 的值赋给 p2。 when 10 = p3=c。 当 a 为 2 时,将 c 的值赋给 p3。 when 11 = p4=c。 当 a 为 3 时,将 c 的值赋给 p4。 end case。 end if。 end process t1。
.............................................................6 实验总结 ..........................................................................................................7 摘要 ....................
数后,向十分位进 1。 求得近似数 ,十分位上的“ 0”不能去掉。 想:要保留整数,就要省略整数后面的尾数。 十分位上满 5,省略尾数后,向( )位进 1。 3 个 1 1 如何求一个小数的近似数呢。 求一个小数的近似数,同求整数的近似数相似,根据需要用“四舍五入法”保留一定的小数位数。 如果保留整数,就看十分位是几;要保留一位小数,就看百分位是几 ……。 然后按“四舍五入”法决定是舍还是入。