基于FPGA数字秒表设计(完整资料).doc

2026/1/27 15:07:21

4.4八段译码器 4.4.1八段译码器实现

entity baduan is

Port ( in_7 : in STD_LOGIC_VECTOR (3 downto 0); seg : out STD_LOGIC_VECTOR (7 downto 0)); end baduan;

architecture Behavioral of baduan is

begin

process(in_7) begin

Case in_7 is

when \ when \ when \ when \ when \ when \ when \ when \ when \ when \ when others => seg <=\ end case; end process;

end Behavioral;

27

4.4.2八段译码器仿真

tb : PROCESS BEGIN

in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ in_7 <= \ END PROCESS;

由图可见仿真结果与程序完全符合

4.4.3八段译码器电路综合

28

View Technology Schematic :

29

4.5控制器 4.5.1控制器

entity kongzhiqi is

Port ( clk_1k : in STD_LOGIC;

start_stop_out : in STD_LOGIC; split_reset_out : in STD_LOGIC;

sreg_out : out STD_LOGIC_VECTOR (2 downto 0)); end kongzhiqi;

architecture Behavioral of kongzhiqi is

signal sreg: STD_LOGIC_VECTOR(2 downto 0):=\ signal snext: STD_LOGIC_VECTOR(2 downto 0); begin

process(clk_1k,start_stop_out,split_reset_out) begin

if rising_edge(clk_1k) then sreg <= snext; end if; end process;

process(start_stop_out,split_reset_out,sreg) begin

case sreg is

when \if start_stop_out = '1' and split_reset_out = '0' then snext <= \ else snext <= sreg;

end if; when \if start_stop_out = '1' and split_reset_out = '0' then snext <= \

30


基于FPGA数字秒表设计(完整资料).doc.doc 将本文的Word文档下载到电脑
搜索更多关于: 基于FPGA数字秒表设计(完整资料).doc 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219