Description
I ran into a snag with the output of gowin_unpack.py when trying to synthesize it in the Gowin IDE.
The IDE fails with an error on ALU definitions like this one:
ALU R2C6_ALU_0
(
.SUM(R2C6_F0),
.CIN(R2C6_CIN0),
.I2(R2C6_C0),
.COUT(R2C6_CIN1),
.I0(R2C6_B0),
.I1(R2C6_D0),
.I3(R2C6_A0)
);
ERROR (EX3990) : Cannot find port 'I2' on this module("/home/peter/Data/Gowin_projects/GW2AR_PSRAM/src/psram_control.v":476634)
In the output for simulation, generated by the IDE, it looks like this:
ALU \u_psram_top/u_psram_top_0/u_psram_wd/step_cry_0[6]
(
.I0(GND),
.I1(\u_psram_top/u_psram_top_0/u_psram_wd/step [6]),
.I3(GND),
.CIN(\u_psram_top/u_psram_top_0/u_psram_wd/step_cry [5]),
.COUT(\u_psram_top/u_psram_top_0/u_psram_wd/step_cry [6]),
.SUM(\u_psram_top/u_psram_top_0/u_psram_wd/step_s [6])
);
I have not looked at the python code to see why this is happening as I fear it will be a bit deeper than the other problems found.
Any ideas?