始终仿真通过, 上板测试失败应该是不能采集整倍数的时钟

main
阳光少年 8 months ago
parent 78c14ea1a4
commit f0caf83860

@ -1,17 +1,17 @@
// 使ip // 使ip<EFBFBD>?<EFBFBD><EFBFBD>?
module clk_wiz( module clk_wiz(
(*mark_debug="true"*)input wire sys_clk, // U18 input wire sys_clk, // U18
(*mark_debug="true"*)input wire sys_rst, //J15 input wire sys_rst, //J15
(*mark_debug="true"*)output wire clk_100m, (*mark_debug="true"*)output wire clk_100m, // e19
(*mark_debug="true"*)output wire clk_100m_r, // 180 output wire clk_100m_r, // d19 180<EFBFBD>?
(*mark_debug="true"*)output wire clk_50m, (*mark_debug="true"*)output wire clk_50m, // a20
(*mark_debug="true"*)output wire clk_25m (*mark_debug="true"*)output wire clk_25m, // b19
(*mark_debug="true"*)output wire clk_15m // d20
); );
wire locked; // wire locked; //
wire rst; wire global_rst;
// , sys, 使<EFBFBD>?
// , sys, 使
// 使 // 使
assign global_rst = locked && sys_rst; assign global_rst = locked && sys_rst;
@ -23,10 +23,8 @@ clk_wiz_0 u_clk_wiz_0(
.clk_out1(clk_100m), .clk_out1(clk_100m),
.clk_out2(clk_100m_r), .clk_out2(clk_100m_r),
.clk_out3(clk_50m), .clk_out3(clk_50m),
.clk_out4(clk_25m) .clk_out4(clk_25m),
.clk_out5(clk_15m),
.locked(locked)
); );
endmodule endmodule

@ -6,10 +6,18 @@ reg sys_rst;
always #10 sys_clk = ~sys_clk; always #10 sys_clk = ~sys_clk;
initial begin
sys_clk <= 1'b0;
sys_rst <= 1'b0;
#50
sys_rst <= 1'b1;
end
wire clk_100m; wire clk_100m;
wire clk_100m_r; wire clk_100m_r;
wire clk_50m; wire clk_50m;
wire clk_25m; wire clk_25m;
wire clk_15m;
clk_wiz u_clk_wiz( clk_wiz u_clk_wiz(
.sys_clk(sys_clk), // U18 .sys_clk(sys_clk), // U18
@ -17,7 +25,8 @@ clk_wiz u_clk_wiz(
.clk_100m(clk_100m), .clk_100m(clk_100m),
.clk_100m_r(clk_100m_r), // 180 .clk_100m_r(clk_100m_r), // 180
.clk_50m(clk_50m), .clk_50m(clk_50m),
.clk_25m(clk_25m) .clk_25m(clk_25m),
.clk_15m(clk_15m)
); );
endmodule endmodule

Loading…
Cancel
Save