Open jtplaarj opened 8 months ago
Also happens with xc7a50t based project which builds successfully in Vivado. skipping a bunch of wire and input buffer generated by clk_wiz:
PLLE2_ADV
#(.BANDWIDTH ("OPTIMIZED"),
.COMPENSATION ("ZHOLD"),
.STARTUP_WAIT ("FALSE"),
.DIVCLK_DIVIDE (1),
.CLKFBOUT_MULT (40),
.CLKFBOUT_PHASE (0.000),
.CLKOUT0_DIVIDE (10),
.CLKOUT0_PHASE (0.000),
.CLKOUT0_DUTY_CYCLE (0.500),
.CLKOUT1_DIVIDE (8),
.CLKOUT1_PHASE (0.000),
.CLKOUT1_DUTY_CYCLE (0.500),
.CLKIN1_PERIOD (40.000))
plle2_adv_inst
// Output clocks
(
.CLKFBOUT (clkfbout_clk_wiz_0),
.CLKOUT0 (clk_out1_clk_wiz_0),
.CLKOUT1 (clk_out2_clk_wiz_0),
.CLKOUT2 (clkout2_unused),
.CLKOUT3 (clkout3_unused),
.CLKOUT4 (clkout4_unused),
.CLKOUT5 (clkout5_unused),
// Input clock control
.CLKFBIN (clkfbout_buf_clk_wiz_0),
.CLKIN1 (clk_in1_clk_wiz_0),
.CLKIN2 (1'b0),
// Tied to always select the primary input clock
.CLKINSEL (1'b1),
// Ports for dynamic reconfiguration
.DADDR (7'h0),
.DCLK (1'b0),
.DEN (1'b0),
.DI (16'h0),
.DO (do_unused),
.DRDY (drdy_unused),
.DWE (1'b0),
// Other control and status signals
.LOCKED (locked_int),
.PWRDWN (1'b0),
.RST (1'b0));
// Clock Monitor clock assigning
//--------------------------------------
// Output buffering
//-----------------------------------
BUFG clkf_buf
(.O (clkfbout_buf_clk_wiz_0),
.I (clkfbout_clk_wiz_0));
//assign clkfbout_buf_clk_wiz_0 = clkfbout_clk_wiz_0;
BUFG clkout1_buf
(.O (clk_out1),
.I (clk_out1_clk_wiz_0));
//assign clk_out1 = clk_out1_clk_wiz_0;
BUFG clkout2_buf
(.O (clk_out2),
.I (clk_out2_clk_wiz_0));
//assign clk_out2 = clk_out2_clk_wiz_0;
Changing to .COMPENSATION ("INTERNAL"), //("ZHOLD"),
does allow PNR to continue, and the rest of openXC7 produces a bitstream, but the bitstream doesn't function on the chip (for my DVI out project at least).
@jtplaarj Vivado implementation error is pretty clear what the issue is:
[DRC REQP-1684] Feedback check: Unsupported PLLE2_ADV connectivity. The signal clk_tmds_i/clkfbout_buf_clk_wiz_0 on the CLKFBIN pin of clk_tmds_i/plle2_adv_inst with COMPENSATION mode 'INTERNAL' must be driven directly by the CLKFBOUT pin on the same cell.
I imagine if you re-run the clk_wiz IP to generate a valid "INTERNAL" compensation PLL setup, it has a chance of working with nextpnr.
@jtplaarj following the fix suggested by Vivado, I have a working bitstream once I removed the input buffer after changing the PLL compensation type:
// Clock Monitor clock assigning
//--------------------------------------
// Output buffering
//-----------------------------------
// BUFG clkf_buf
// (.O (clkfbout_buf_clk_wiz_0),
// .I (clkfbout_clk_wiz_0));
assign clkfbout_buf_clk_wiz_0 = clkfbout_clk_wiz_0;
I have modified the blinky example for the arty board to add a PLLE2_ADV using the vivado clocking wizard.
The code looks like:
clk_wiz_0
is obtained using the clocking wizard:The same for
clk_wiz_0_clk_wiz
:When trying to obtain a valid bitstream using the following command line
nextpnr-xilinx --chipdb ../../chipdb/xc7a35tcsg324.bin --xdc blinky.xdc --json blinky.json --fasm blinky.fasm
I obtain the following error:Standard blinky example works and litex-ddr-arty-s7 also implements.
Any help would be appreciated!!