3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-07 19:51:23 +00:00

ecp5: ECP5 synthesis fixes

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-07-16 14:33:13 +02:00
parent 459d367913
commit b2c62ff8ef
3 changed files with 32 additions and 15 deletions

View file

@ -42,7 +42,7 @@ module _80_ecp5_alu (A, B, CI, BI, X, Y, CO);
function integer round_up2;
input integer N;
begin
round_up2 = ((N / 2) + 1) * 2;
round_up2 = ((N + 1) / 2) * 2;
end
endfunction
@ -69,7 +69,7 @@ module _80_ecp5_alu (A, B, CI, BI, X, Y, CO);
);
assign CO[i] = (AA[i] && BB[i]) || (C[i] && (AA[i] || BB[i]));
if (i < Y_WIDTH) begin
if (i+1 < Y_WIDTH) begin
assign CO[i+1] = FCO[i];
assign Y[i+1] = Y1[i];
end