找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

帖子
查看: 5219|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

EDA時(shí)鐘頂層設(shè)計(jì)VHDL源碼

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
EDA時(shí)鐘的頂層設(shè)計(jì)部分


VHDL源碼如下:
  1. // Copyright (C) 1991-2011 Altera Corporation
  2. // Your use of Altera Corporation's design tools, logic functions
  3. // and other software and tools, and its AMPP partner logic
  4. // functions, and any output files from any of the foregoing
  5. // (including device programming or simulation files), and any
  6. // associated documentation or information are expressly subject
  7. // to the terms and conditions of the Altera Program License
  8. // Subscription Agreement, Altera MegaCore Function License
  9. // Agreement, or other applicable license agreement, including,
  10. // without limitation, that your use is for the sole purpose of
  11. // programming logic devices manufactured by Altera and sold by
  12. // Altera or its authorized distributors.  Please refer to the
  13. // applicable agreement for further details.

  14. // PROGRAM                "Quartus II"
  15. // VERSION                "Version 11.0 Build 208 07/03/2011 Service Pack 1 SJ Full Version"
  16. // CREATED                "Sun Apr 16 10:29:37 2017"

  17. module dingceng(
  18.         clk,
  19.         reset,
  20.         set,
  21.         up,
  22.         d_col,
  23.         d_out
  24. );


  25. input wire        clk;
  26. input wire        reset;
  27. input wire        set;
  28. input wire        up;
  29. output wire        [7:0] d_col;
  30. output wire        [7:0] d_out;

  31. wire        h_set;
  32. wire        key_clk;
  33. wire        m_set;
  34. wire        s_clk;
  35. wire        s_set;
  36. wire        scan_clk;
  37. wire        set_en;
  38. wire        up_en;
  39. wire        [7:0] SYNTHESIZED_WIRE_0;
  40. wire        [7:0] SYNTHESIZED_WIRE_1;
  41. wire        [7:0] SYNTHESIZED_WIRE_2;





  42. Clock_cnt        b2v_inst(
  43.         .clk(clk),
  44.         .h_set(h_set),
  45.         .m_set(m_set),
  46.         .s_set(s_set),
  47.         .up_en(up_en),
  48.         .rst_n(reset),
  49.         .s_clk(s_clk),
  50.         .h_data(SYNTHESIZED_WIRE_0),
  51.         .m_data(SYNTHESIZED_WIRE_1),
  52.         .s_data(SYNTHESIZED_WIRE_2));


  53. Clock_ctl        b2v_inst1(
  54.         .clk(clk),
  55.         .rst_n(reset),
  56.         .set_en(set_en),
  57.         .h_set(h_set),
  58.         .m_set(m_set),
  59.         .s_set(s_set));
  60.         defparam        b2v_inst1.hour_set = 2'b01;
  61.         defparam        b2v_inst1.minute_set = 2'b10;
  62.         defparam        b2v_inst1.normal = 2'b00;
  63.         defparam        b2v_inst1.second_set = 2'b11;


  64. Key_ctl        b2v_inst2(
  65.         .set(set),
  66.         .rst_n(reset),
  67.         .clk(clk),
  68.         .key_clk(key_clk),
  69.         .set_en(set_en));


  70. up        b2v_inst3(
  71.         .up(up),
  72.         .rst_n(reset),
  73.         .clk(clk),
  74.         .key_clk(key_clk),
  75.         .up_en(up_en));


  76. Freq_div        b2v_inst4(
  77.         .clk(clk),
  78.         .rst_n(reset),
  79.         .scan_clk(scan_clk),
  80.         .key_clk(key_clk),
  81.         .s_clk(s_clk));


  82. Display        b2v_inst5(
  83.         .clk(clk),
  84.         .scan_clk(scan_clk),
  85.         .rst_n(reset),
  86.         .h_data(SYNTHESIZED_WIRE_0),
  87.         .m_data(SYNTHESIZED_WIRE_1),
  88.         .s_data(SYNTHESIZED_WIRE_2),
  89.         .d_col(d_col),
  90.         .d_out(d_out));


  91. endmodule
復(fù)制代碼

所有資料51hei提供下載:
dingceng.rar (5.9 MB, 下載次數(shù): 29)


評(píng)分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎(jiǎng)勵(lì)!

查看全部評(píng)分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:525687 發(fā)表于 2019-12-21 10:34 | 只看該作者
太有用了,謝謝樓主
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表