Forum Discussion
Requesting help debugging the PCIe root port example on another board than the devkit
Greetings,
I tried verifying that the clocks and resets were correct. I was not able to directly inspect the clocks in signal tap, for some reason adding them to stp-file resulted in errors during synthesis. However, I did create three counters in the qsys_top_wrapper file:
always @ (posedge system_clk_100) begin
if (system_reset) begin
mycounter <= 32'b0;
end else begin
if (mycounter <= MYCOUNTER_MAX) begin
mycounter <= mycounter + 1'b1;
if (mycounter >= MYCOUNTER_GPIO_HIGH_AFTER) begin
de_gpios_wire[1:0] <= 2'b11;
end else begin
de_gpios_wire[1:0] <= 2'b00;
end
end else begin
mycounter <= 32'b0;
end
end
end
reg [31:0] mycounter250;
reg [31:0] mycounter100;
always @ (posedge iopll_clk_250) begin
if (pll_locked_rst_250) begin
mycounter250 <= 32'b0;
end else begin
if (mycounter250 <= MYCOUNTER_MAX) begin
mycounter250 <= mycounter250 + 1'b1;
if (mycounter250 >= MYCOUNTER_GPIO_HIGH_AFTER) begin
de_gpios_wire[3:2] <= 2'b11;
end else begin
de_gpios_wire[3:2] <= 2'b00;
end
end else begin
mycounter250 <= 32'b0;
end
end
end
always @ (posedge iopll_clk_100) begin
if (pll_locked_rst_100) begin
mycounter100 <= 32'b0;
end else begin
if (mycounter100 <= MYCOUNTER_MAX) begin
mycounter100 <= mycounter100 + 1'b1;
if (mycounter100 >= MYCOUNTER_GPIO_HIGH_AFTER) begin
de_gpios_wire[5:4] <= 2'b11;
end else begin
de_gpios_wire[5:4] <= 2'b00;
end
end else begin
mycounter100 <= 32'b0;
end
end
endI can see in signal tap that these counters run, so the clocks and the resets/pll locks should be correct.
As for the reset signals not being wired correctly, I have not really changed any of the resets in the design, so I would expect that they behave the same in my setup as in the original design. Even so, I have inspected all the resets I could think of in signal tap, and they all seem to be deasserted.
I have also tried adding a sysid subordinate in the qsys_top platform designer qsys file on the HPS2FPGA bridge, just to add another device to read from u-boot, but reading from that also just hangs.
I have inspected the bridge manager from u-boot and have confirmed that the bridge reset bits are cleared when I call the bridge enable command.
I have not looked into the NOC privilege mode, but it seems like a long shot. I do believe that the answer probably most likely might lie in the clocks and resets of the bridges, but I do not know what I could try next.
Hi
You mentioned that even a sysid IP also failed to read from the bridge enable.
Just to confirm, in uboot you did load the fabric configuration (HPS First boot) using the "fpga load" command and "bridge enable" did not have any error?
By any chance there is an AVMM Bridge in between the HPS and the IPs connected? Is the Bridge IP held in reset?
Try connecting the sysID IP directly to the bridge and check if you are able to read the sysID correctly.