|
如题,
Warning (12241): 1 hierarchies have connectivity warnings - see the Connectivity Checks report folder
Warning (21074): Design contains 1 input pin(s) that do not drive logic
Warning (15610): No output dependent on input pin "T_CLK"
module Freq_counter
(
B_CLK, T_CLK, rstn,
Led_8, Led_7, Led_6, Led_5,
Led_4, Led_3, Led_2, Led_1
);
input B_CLK, T_CLK, rstn;
output [6:0]Led_8, Led_7, Led_6, Led_5,
Led_4, Led_3, Led_2, Led_1;
wire B_CLK, T_CLK, rstn;
wire [6:0]Led_8, Led_7, Led_6, Led_5,
Led_4, Led_3, Led_2, Led_1;
/**************************************/
wire clk_1hz;
wire gate_clk;
div_clk U1
(
.B_CLK( B_CLK ),
.rstn( rstn ),
.clk_1hz( clk_1hz ),
.gate_clk( gate_clk )
);
/**************************************/
wire Q;
d_flip_flop U2
(
.D( gate_clk ),
.CP( T_CLK ),
.rstn( rstn ),
.Q( Q )
);
/**************************************/
RTL Viewer在下面、红线部分是T_CLK的连线!
module d_flip_flop
(
D, CP, rstn,
Q
);
input D, CP, rstn;
output Q;
reg Q;
/*************************************/
always @ ( posedge CP or negedge rstn )
if( !rstn )
Q <= 1'b0;
else
Q <= D;
/*************************************/
endmodule
module counter2
(
Sig_in, CEN,
Cnt2_data
);
input Sig_in, CEN;
output [31:0]Cnt2_data;
/************************************/
parameter freq_50MHz = 32'd50_000_000;
/************************************/
reg [31:0]count4;
always @ ( posedge Sig_in )
if( CEN == 1'b0 )
begin
count4 <= 0;
end
else
begin
count4 <= count4 + 1'b1;
end
/**************************************/
assign Cnt2_data = count4 * freq_50MHz;
/**************************************/
endmodule
求高手解释,谢了!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|