Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 讨论

clock control intel FPGA IP is not correct in quartus prime pro 23.4

MicroDick
初学者
2,417 次查看

I have created a project in quartus prime pro 23.4 ant I have used clock control intel FPGA IP as a MUX for clock.And When I run synthesis error encouted.

Error(13224): Verilog HDL or VHDL error at clk_mux_stratix10_clkctrl_2000_yem6tmi.v(67): index 1 is out of range [0:0] for 'clkselect'

And sorry my computer cannot upload any picture 

Below is the detail part of clk_mux_stratix10_clkctrl_2000_yem6tmi.v module module 

module clk_mux_stratix10_clkctrl_2000_yem6tmi_clksel_mux (
    input inclk0x,
    input inclk1x,
    input clkselect,
    output clkout
);

    parameter num_clocks = 2;
    genvar i;
    wire [num_clocks-1:0] clk;
    wire [num_clocks-1:0] clk_select; // one hot
    reg [num_clocks-1:0] ena_r0;
    reg [num_clocks-1:0] ena_r1;
    reg [num_clocks-1:0] ena_r2;
    wire [num_clocks-1:0] qualified_sel;

    // A look-up-table (LUT) can glitch when multiple inputs
    // change simultaneously. Use the keep attribute to
    // insert a hard logic cell buffer and prevent
    // the unrelated clocks from appearing on the same LUT.

    assign clk[0] = inclk0x;
    assign clk[1] = inclk1x;
   
    // Decoder logic
    assign clk_select[0] = ~clkselect[1] & ~clkselect[0];
    assign clk_select[1] = ~clkselect[1] & clkselect[0];
0 项奖励
9 回复数
sstrell
名誉分销商 III
2,383 次查看

Dupe post.

Answered in your other post that clkselect is single bit but you're using it as 2 bit.

0 项奖励
MicroDick
初学者
2,145 次查看

Thanks, I know what this message means , but this V file is automatically created by QUARTUS prime ,which is why i am confused

0 项奖励
EthanLi
员工
2,334 次查看

As mentioned above, the input clkselect should be 1bit while you defined it as 2 bit.

 

Thanks,

Ethan

 

0 项奖励
MicroDick
初学者
2,145 次查看

Thanks, I know what this message means , but this Verilog file is automatically created by Quartus prime ,which is why i am confused

0 项奖励
sstrell
名誉分销商 III
2,133 次查看

How are you generating this?  Is it from the IP?  Show your IP parameter editor settings.  If it's from an IP, the GUI would prevent you from using illegal values.

0 项奖励
MicroDick
初学者
2,013 次查看

MicroDick_0-1713920811192.png

Here is the detail

0 项奖励
MicroDick
初学者
2,013 次查看

MicroDick_1-1713920875761.png

nothing sepecial

0 项奖励
sstrell
名誉分销商 III
1,984 次查看

So if you regenerate the IP (Generate HDL), you keep getting the same incorrect HDL from the tool?

0 项奖励
MicroDick
初学者
1,949 次查看

Yes, I do regenerate the IP and only get the same result

0 项奖励
回复