標題: EDA時鐘頂層設(shè)計VHDL源碼 [打印本頁]

作者: zysjj    時間: 2018-4-29 21:39
標題: EDA時鐘頂層設(shè)計VHDL源碼
EDA時鐘的頂層設(shè)計部分


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)



作者: 小滄月兒    時間: 2019-12-21 10:34
太有用了,謝謝樓主




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1