找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4348|回复: 1
打印 上一主题 下一主题
收起左侧

EDA时钟顶层设计VHDL源码

[复制链接]
跳转到指定楼层
楼主
EDA时钟的顶层设计部分


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
复制代码

所有资料51hei提供下载:
dingceng.rar (5.9 MB, 下载次数: 28)


评分

参与人数 1黑币 +50 收起 理由
admin + 50 共享资料的黑币奖励!

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:525687 发表于 2019-12-21 10:34 | 只看该作者
太有用了,谢谢楼主
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表