精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 求eda數(shù)字鐘設(shè)計(jì)程序

    求eda數(shù)字鐘設(shè)計(jì)程序
    請(qǐng)根據(jù)要求在EDA實(shí)驗(yàn)箱上設(shè)計(jì)實(shí)用數(shù)字鐘系統(tǒng),要求:
    ⑴使用EDA實(shí)驗(yàn)箱上的6個(gè)LED數(shù)碼管從左到右依次顯示有時(shí)、分、秒計(jì)數(shù);
    ⑵使用EDA實(shí)驗(yàn)箱上的開關(guān)實(shí)現(xiàn)十二小時(shí)制與二十四小時(shí)制切換功能;
    ⑶使用EDA實(shí)驗(yàn)箱上的開關(guān)實(shí)現(xiàn)調(diào)時(shí)功能,能非常方便地對(duì)小時(shí)、分鐘和秒進(jìn)行手動(dòng)調(diào)節(jié)以校準(zhǔn)時(shí)間;
    ⑷使用實(shí)驗(yàn)箱上的蜂鳴器實(shí)現(xiàn)整點(diǎn)報(bào)時(shí)功能,每逢整點(diǎn),產(chǎn)生報(bào)時(shí)音報(bào)時(shí);
    ⑸使用實(shí)驗(yàn)箱上的蜂鳴器與開關(guān),實(shí)現(xiàn)鬧鐘及鬧鈴時(shí)間設(shè)定功能(擴(kuò)展功能);
    ⑹數(shù)字鐘系統(tǒng)只能使用單一外部時(shí)鐘.
    其他部分不要了,我就想知道24和12小時(shí)制轉(zhuǎn)換的那個(gè)部分的程序是怎么做出來(lái)的
    其他人氣:525 ℃時(shí)間:2020-02-05 12:12:34
    優(yōu)質(zhì)解答
    1.Topclock(元件例化 頂層文件)
    Library ieee;
    Use ieee.std_logic_1164.all;
    Use ieee.std_logic_arith.all;
    Use ieee.std_logic_unsigned.all;
    Entity topclock is
    Port(clk,clr,en,m1,h1:in std_logic;
    alarm:out std_logic;
    secs,secg,mins,ming,hours,hourg:buffer std_logic_vector(3 downto 0));
    End;
    2.秒模塊程序
    library ieee;
    use ieee.std_logic_1164.all;
    use ieee.std_logic_unsigned.all;
    entity SECOND is
    port(clk,clr:in std_logic;
    sec1,sec0:out std_logic_vector(3 downto 0);
    co:out std_logic);
    end SECOND;
    architecture SEC of SECOND is
    begin
    process(clk,clr)
    variable cnt1,cnt0:std_logic_vector(3 downto 0);
    begin
    if clr='1' then
    cnt1:="0000";
    cnt0:="0000";
    elsif clk'event and clk='1' then
    if cnt1="0101" and cnt0="1000" then
    coa);
    u2:min1 port map(clr=>clr,alarm=>alarm,
    mins=>mins,ming=>ming,clkm=>b,enmin=>c);
    u3:hour1 port map(clr=>clr,
    hours=>hours,hourg=>hourg,clkh=>d);
    u4:madapt port map(en=>en,m1=>m1,clk=>clk,secin=>a,minset=>b);
    u5:hadapt port map(en=>en,h1=>h1,clk=>clk,minin=>c,hourset=>d);
    end;
    我來(lái)回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版