mirror of https://github.com/YosysHQ/yosys.git
Tidy up, fix undriven
This commit is contained in:
parent
8a94ce7aa5
commit
691686f92c
|
@ -326,15 +326,14 @@ __CELL__ #(
|
||||||
$error("Invalid DSP48E1 configuration: ADREG enabled but USE_DPORT == \"FALSE\"");
|
$error("Invalid DSP48E1 configuration: ADREG enabled but USE_DPORT == \"FALSE\"");
|
||||||
assign pAD = 1'bx;
|
assign pAD = 1'bx;
|
||||||
if (PREG == 0) begin
|
if (PREG == 0) begin
|
||||||
assign pP = 1'bx;
|
|
||||||
if (MREG == 1)
|
if (MREG == 1)
|
||||||
\$__ABC_REG rM (.Q(pM));
|
\$__ABC_REG rM (.Q(pM));
|
||||||
else
|
else
|
||||||
assign pM = 1'bx;
|
assign pM = 1'bx;
|
||||||
end
|
assign pP = 1'bx;
|
||||||
else begin
|
end else begin
|
||||||
\$__ABC_REG rP (.Q(pP));
|
|
||||||
assign pM = 1'bx;
|
assign pM = 1'bx;
|
||||||
|
\$__ABC_REG rP (.Q(pP));
|
||||||
end
|
end
|
||||||
|
|
||||||
if (MREG == 0 && PREG == 0)
|
if (MREG == 0 && PREG == 0)
|
||||||
|
@ -370,18 +369,21 @@ __CELL__ #(
|
||||||
else
|
else
|
||||||
\$__ABC_REG #(.WIDTH(25)) rD (.I(D), .O(iD), .Q(pD));
|
\$__ABC_REG #(.WIDTH(25)) rD (.I(D), .O(iD), .Q(pD));
|
||||||
if (PREG == 0) begin
|
if (PREG == 0) begin
|
||||||
if (MREG == 1)
|
if (MREG == 1) begin
|
||||||
|
assign pAD = 1'bx;
|
||||||
\$__ABC_REG rM (.Q(pM));
|
\$__ABC_REG rM (.Q(pM));
|
||||||
else begin
|
end else begin
|
||||||
assign pM = 1'bx;
|
|
||||||
if (ADREG == 1)
|
if (ADREG == 1)
|
||||||
\$__ABC_REG rAD (.Q(pAD));
|
\$__ABC_REG rAD (.Q(pAD));
|
||||||
else
|
else
|
||||||
assign pAD = 1'bx;
|
assign pAD = 1'bx;
|
||||||
|
assign pM = 1'bx;
|
||||||
end
|
end
|
||||||
end
|
assign pP = 1'bx;
|
||||||
else
|
end else begin
|
||||||
|
assign pAD = 1'bx, pM = 1'bx;
|
||||||
\$__ABC_REG rP (.Q(pP));
|
\$__ABC_REG rP (.Q(pP));
|
||||||
|
end
|
||||||
|
|
||||||
if (MREG == 0 && PREG == 0)
|
if (MREG == 0 && PREG == 0)
|
||||||
assign mP = oP, mPCOUT = oPCOUT;
|
assign mP = oP, mPCOUT = oPCOUT;
|
||||||
|
@ -411,15 +413,15 @@ __CELL__ #(
|
||||||
assign iC = C, pC = 1'bx;
|
assign iC = C, pC = 1'bx;
|
||||||
else
|
else
|
||||||
\$__ABC_REG #(.WIDTH(48)) rC (.I(C), .O(iC), .Q(pC));
|
\$__ABC_REG #(.WIDTH(48)) rC (.I(C), .O(iC), .Q(pC));
|
||||||
if (MREG == 1 && techmap_guard)
|
|
||||||
$error("Invalid DSP48E1 configuration: MREG enabled but USE_MULT == \"NONE\"");
|
|
||||||
assign pM = 1'bx;
|
|
||||||
if (DREG == 1 && techmap_guard)
|
if (DREG == 1 && techmap_guard)
|
||||||
$error("Invalid DSP48E1 configuration: DREG enabled but USE_DPORT == \"FALSE\"");
|
$error("Invalid DSP48E1 configuration: DREG enabled but USE_DPORT == \"FALSE\"");
|
||||||
assign pD = 1'bx;
|
assign pD = 1'bx;
|
||||||
if (ADREG == 1 && techmap_guard)
|
if (ADREG == 1 && techmap_guard)
|
||||||
$error("Invalid DSP48E1 configuration: ADREG enabled but USE_DPORT == \"FALSE\"");
|
$error("Invalid DSP48E1 configuration: ADREG enabled but USE_DPORT == \"FALSE\"");
|
||||||
assign pAD = 1'bx;
|
assign pAD = 1'bx;
|
||||||
|
if (MREG == 1 && techmap_guard)
|
||||||
|
$error("Invalid DSP48E1 configuration: MREG enabled but USE_MULT == \"NONE\"");
|
||||||
|
assign pM = 1'bx;
|
||||||
if (PREG == 1)
|
if (PREG == 1)
|
||||||
\$__ABC_REG rP (.Q(pP));
|
\$__ABC_REG rP (.Q(pP));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue