From 555e55c3bbcef0fabcf017753b071a5e2d25b8b3 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 29 Mar 2024 13:18:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3zsimple=5Fpll=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=A4=84=E7=90=86=E8=84=89=E5=86=B2=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- led_test.pds | 102 +++++++--------------------------------- source/src/output/ttl_output.v | 2 +- source/src/zutils/zsimple_pll.v | 4 +- 3 files changed, 21 insertions(+), 87 deletions(-) diff --git a/led_test.pds b/led_test.pds index f248110..0949dc4 100644 --- a/led_test.pds +++ b/led_test.pds @@ -1,5 +1,5 @@ (_flow fab_demo "2021.1-SP7" - (_comment "Generated by Fabric Compiler (version on 2021.1-SP7) at Wed Mar 27 17:08:41 2024") + (_comment "Generated by Fabric Compiler (version on 2021.1-SP7) at Fri Mar 29 13:15:57 2024") (_version "1.0.5") (_status "initial") (_project @@ -59,7 +59,7 @@ ) (_file "source/src/output/ttl_output.v" (_format verilog) - (_timespec "2024-03-27T16:06:42") + (_timespec "2024-03-29T13:10:05") ) (_file "source/src/zutils/zutils_pwm_generator.v" (_format verilog) @@ -163,7 +163,7 @@ ) (_file "source/src/zutils/zsimple_pll.v" (_format verilog) - (_timespec "2024-03-27T12:48:00") + (_timespec "2024-03-29T13:12:21") ) (_file "source/src/zutils/zutils_freq_detector_v2.v" (_format verilog) @@ -315,17 +315,17 @@ (_db_output (_file "compile/Top_comp.adf" (_format adif) - (_timespec "2024-03-27T17:03:45") + (_timespec "2024-03-29T13:13:19") ) ) (_output (_file "compile/Top.cmr" (_format verilog) - (_timespec "2024-03-27T17:03:41") + (_timespec "2024-03-29T13:13:15") ) (_file "compile/cmr.db" (_format text) - (_timespec "2024-03-27T17:03:45") + (_timespec "2024-03-29T13:13:19") ) ) ) @@ -341,21 +341,21 @@ (_db_output (_file "synthesize/Top_syn.adf" (_format adif) - (_timespec "2024-03-27T17:05:19") + (_timespec "2024-03-29T13:15:34") ) ) (_output (_file "synthesize/Top_syn.vm" (_format structural_verilog) - (_timespec "2024-03-27T17:05:27") + (_timespec "2024-03-29T13:15:42") ) (_file "synthesize/Top.snr" (_format text) - (_timespec "2024-03-27T17:05:34") + (_timespec "2024-03-29T13:15:49") ) (_file "synthesize/snr.db" (_format text) - (_timespec "2024-03-27T17:05:34") + (_timespec "2024-03-29T13:15:49") ) ) ) @@ -376,21 +376,21 @@ (_db_output (_file "device_map/Top_map.adf" (_format adif) - (_timespec "2024-03-27T17:05:40") + (_timespec "2024-03-29T13:15:57") ) ) (_output (_file "device_map/Top_dmr.prt" (_format text) - (_timespec "2024-03-27T17:05:37") + (_timespec "2024-03-29T13:15:54") ) (_file "device_map/Top.dmr" (_format text) - (_timespec "2024-03-27T17:05:40") + (_timespec "2024-03-29T13:15:57") ) (_file "device_map/dmr.db" (_format text) - (_timespec "2024-03-27T17:05:40") + (_timespec "2024-03-29T13:15:57") ) ) ) @@ -399,7 +399,7 @@ (_input (_file "device_map/led_test.pcf" (_format pcf) - (_timespec "2024-03-27T17:05:40") + (_timespec "2024-03-29T13:15:57") ) ) ) @@ -409,7 +409,7 @@ ) (_task tsk_pnr (_command cmd_pnr - (_gci_state (_integer 2)) + (_gci_state (_integer 0)) (_option gplace_seed (_integer 8)) (_option seed_step (_integer 4)) (_option saved_outcome (_integer 4)) @@ -417,38 +417,6 @@ (_option share_router_control_signal (_boolean FALSE)) (_option check_clk_net_route_by_srb (_boolean FALSE)) (_option fix_hold_violation_in_route (_boolean FALSE)) - (_db_output - (_file "place_route/Top_pnr.adf" - (_format adif) - (_timespec "2024-03-27T17:08:12") - ) - ) - (_output - (_file "place_route/Top.prr" - (_format text) - (_timespec "2024-03-27T17:08:12") - ) - (_file "place_route/Top_prr.prt" - (_format text) - (_timespec "2024-03-27T17:08:12") - ) - (_file "place_route/clock_utilization.txt" - (_format text) - (_timespec "2024-03-27T17:08:12") - ) - (_file "place_route/Top_plc.adf" - (_format adif) - (_timespec "2024-03-27T17:06:34") - ) - (_file "place_route/Top_pnr.netlist" - (_format text) - (_timespec "2024-03-27T17:08:12") - ) - (_file "place_route/prr.db" - (_format text) - (_timespec "2024-03-27T17:08:13") - ) - ) ) (_widget wgt_power_calculator (_attribute _click_to_run (_switch ON)) @@ -457,24 +425,8 @@ (_attribute _click_to_run (_switch ON)) ) (_command cmd_report_post_pnr_timing - (_gci_state (_integer 2)) + (_gci_state (_integer 0)) (_attribute _auto_exe_lock (_switch OFF)) - (_db_output - (_file "report_timing/Top_rtp.adf" - (_format adif) - (_timespec "2024-03-27T17:08:21") - ) - ) - (_output - (_file "report_timing/Top.rtr" - (_format text) - (_timespec "2024-03-27T17:08:21") - ) - (_file "report_timing/rtr.db" - (_format text) - (_timespec "2024-03-27T17:08:22") - ) - ) ) (_widget wgt_arch_browser (_attribute _click_to_run (_switch ON)) @@ -492,26 +444,8 @@ ) (_task tsk_gen_bitstream (_command cmd_gen_bitstream - (_gci_state (_integer 2)) + (_gci_state (_integer 0)) (_option unused_io_status (_string "KEEPER")) - (_output - (_file "generate_bitstream/Top.sbit" - (_format text) - (_timespec "2024-03-27T17:08:40") - ) - (_file "generate_bitstream/Top.smsk" - (_format text) - (_timespec "2024-03-27T17:08:40") - ) - (_file "generate_bitstream/Top.bgr" - (_format text) - (_timespec "2024-03-27T17:08:40") - ) - (_file "generate_bitstream/bgr.db" - (_format text) - (_timespec "2024-03-27T17:08:41") - ) - ) ) ) ) diff --git a/source/src/output/ttl_output.v b/source/src/output/ttl_output.v index bdf297b..43d6067 100644 --- a/source/src/output/ttl_output.v +++ b/source/src/output/ttl_output.v @@ -22,7 +22,7 @@ module ttl_output #( /******************************************************************************* * 寄存器列表 * *******************************************************************************/ - //!信号处理模式 0:固定输出低电平,1:固定输出高电平,2:触发模式,3:转发模式,4:测试模式 + //!信号处理模式 0:固定输出低电平,1:固定输出高电平,2:触发模式,3:转发模式,4:脉冲信号处理 reg [31:0] reg1_signal_process_mode; //!TTLOUT_信号选择器 reg [31:0] reg2_input_signal_select; diff --git a/source/src/zutils/zsimple_pll.v b/source/src/zutils/zsimple_pll.v index 329be95..42e7158 100644 --- a/source/src/zutils/zsimple_pll.v +++ b/source/src/zutils/zsimple_pll.v @@ -98,13 +98,13 @@ module zsimple_pll ( multiplication_cnt <= 0; multiplication_state <= 0; gen_pluse_cnt <= 0; - insignal_multiplication <= 0; + insignal_multiplication <= insignal_division; end else begin case (multiplication_state) 0: begin gen_pluse_cnt <= 0; multiplication_cnt <= 0; - insignal_multiplication <= 0; + insignal_multiplication <= insignal_division; if (pluse_width_cnt_lock) begin multiplication_state <= 1;