標題:
EDA時鐘頂層設(shè)計VHDL源碼
[打印本頁]
作者:
zysjj
時間:
2018-4-29 21:39
標題:
EDA時鐘頂層設(shè)計VHDL源碼
EDA時鐘的頂層設(shè)計部分
0.png
(42.06 KB, 下載次數(shù): 67)
下載附件
2018-4-30 02:10 上傳
VHDL源碼如下:
// Copyright (C) 1991-2011 Altera Corporation
// Your use of Altera Corporation's design tools, logic functions
// and other software and tools, and its AMPP partner logic
// functions, and any output files from any of the foregoing
// (including device programming or simulation files), and any
// associated documentation or information are expressly subject
// to the terms and conditions of the Altera Program License
// Subscription Agreement, Altera MegaCore Function License
// Agreement, or other applicable license agreement, including,
// without limitation, that your use is for the sole purpose of
// programming logic devices manufactured by Altera and sold by
// Altera or its authorized distributors. Please refer to the
// applicable agreement for further details.
// PROGRAM "Quartus II"
// VERSION "Version 11.0 Build 208 07/03/2011 Service Pack 1 SJ Full Version"
// CREATED "Sun Apr 16 10:29:37 2017"
module dingceng(
clk,
reset,
set,
up,
d_col,
d_out
);
input wire clk;
input wire reset;
input wire set;
input wire up;
output wire [7:0] d_col;
output wire [7:0] d_out;
wire h_set;
wire key_clk;
wire m_set;
wire s_clk;
wire s_set;
wire scan_clk;
wire set_en;
wire up_en;
wire [7:0] SYNTHESIZED_WIRE_0;
wire [7:0] SYNTHESIZED_WIRE_1;
wire [7:0] SYNTHESIZED_WIRE_2;
Clock_cnt b2v_inst(
.clk(clk),
.h_set(h_set),
.m_set(m_set),
.s_set(s_set),
.up_en(up_en),
.rst_n(reset),
.s_clk(s_clk),
.h_data(SYNTHESIZED_WIRE_0),
.m_data(SYNTHESIZED_WIRE_1),
.s_data(SYNTHESIZED_WIRE_2));
Clock_ctl b2v_inst1(
.clk(clk),
.rst_n(reset),
.set_en(set_en),
.h_set(h_set),
.m_set(m_set),
.s_set(s_set));
defparam b2v_inst1.hour_set = 2'b01;
defparam b2v_inst1.minute_set = 2'b10;
defparam b2v_inst1.normal = 2'b00;
defparam b2v_inst1.second_set = 2'b11;
Key_ctl b2v_inst2(
.set(set),
.rst_n(reset),
.clk(clk),
.key_clk(key_clk),
.set_en(set_en));
up b2v_inst3(
.up(up),
.rst_n(reset),
.clk(clk),
.key_clk(key_clk),
.up_en(up_en));
Freq_div b2v_inst4(
.clk(clk),
.rst_n(reset),
.scan_clk(scan_clk),
.key_clk(key_clk),
.s_clk(s_clk));
Display b2v_inst5(
.clk(clk),
.scan_clk(scan_clk),
.rst_n(reset),
.h_data(SYNTHESIZED_WIRE_0),
.m_data(SYNTHESIZED_WIRE_1),
.s_data(SYNTHESIZED_WIRE_2),
.d_col(d_col),
.d_out(d_out));
endmodule
復(fù)制代碼
所有資料51hei提供下載:
dingceng.rar
(5.9 MB, 下載次數(shù): 29)
2018-4-29 21:38 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
作者:
小滄月兒
時間:
2019-12-21 10:34
太有用了,謝謝樓主
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1