You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my own codebase, I noticed that LDCE cells are generated when there is a combinatorial block with a case() statement and a missing default value (then it generates a flipflop mapped to a LDCE). In my case it was due to errors in my own code.
Me too, in my case it was a ALU that I had commented out the default case
always @(*)
begincase (operation)
ADD: result =X+ Y;
SUB: result =X- Y;
OR: result =X| Y;
XOR: result =X ^ Y;
AND: result =X& Y;
LesserThanUnsigned: result =X< Y;
LesserThanSigned: result = $signed(X) < $signed(Y);
ShiftRightUnsigned: result =X>> (Y[4:0]);
ShiftRightSigned: result = $signed(X) >>> (Y[4:0]);
ShiftLeftUnsigned: result =X<< (Y[4:0]);
ShiftLeftSigned: result = $signed(X) <<< (Y[4:0]);
GreaterThanOrEqualUnsigned: result =X>= Y;
GreaterThanOrEqualSigned: result = $signed(X) >= $signed(Y);
Equal: result =X== Y;
NotEqual: result =X!= Y;
default: result =0; // This line commented out.endcaseend
Uh oh!
There was an error while loading. Please reload this page.
yosys
creates a file with LDCE primitives, apparentlynextpnr-xilinx
doesn't support them.The command:
Output:
Definition in JSON file:
The text was updated successfully, but these errors were encountered: