mirror of https://github.com/YosysHQ/yosys.git
Removed $aconst cell type
This commit is contained in:
parent
a8124c137e
commit
6f41e5277d
|
@ -754,7 +754,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AST_FCALL:
|
case AST_FCALL:
|
||||||
if (str == "\\$anyconst" || str == "\\$aconst") {
|
if (str == "\\$anyconst") {
|
||||||
if (GetSize(children) == 1) {
|
if (GetSize(children) == 1) {
|
||||||
while (children[0]->simplify(true, false, false, 1, -1, false, true) == true) { }
|
while (children[0]->simplify(true, false, false, 1, -1, false, true) == true) { }
|
||||||
if (children[0]->type != AST_CONSTANT)
|
if (children[0]->type != AST_CONSTANT)
|
||||||
|
@ -1447,9 +1447,9 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case AST_FCALL: {
|
case AST_FCALL: {
|
||||||
if (str == "\\$anyconst" || str == "\\$aconst")
|
if (str == "\\$anyconst")
|
||||||
{
|
{
|
||||||
string myid = stringf("%s$%d", RTLIL::unescape_id(str).c_str(), autoidx++);
|
string myid = stringf("%s$%d", str.c_str() + 1, autoidx++);
|
||||||
int width = width_hint;
|
int width = width_hint;
|
||||||
|
|
||||||
if (GetSize(children) > 1)
|
if (GetSize(children) > 1)
|
||||||
|
|
|
@ -1672,8 +1672,8 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
goto apply_newNode;
|
goto apply_newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// $anyconst and $aconst are mapped in AstNode::genRTLIL()
|
// $anyconst is mapped in AstNode::genRTLIL()
|
||||||
if (str == "\\$anyconst" || str == "\\$aconst")
|
if (str == "\\$anyconst")
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (str == "\\$clog2")
|
if (str == "\\$clog2")
|
||||||
|
|
|
@ -1229,7 +1229,7 @@ rvalue:
|
||||||
$$ = new AstNode(AST_IDENTIFIER, $2);
|
$$ = new AstNode(AST_IDENTIFIER, $2);
|
||||||
$$->str = *$1;
|
$$->str = *$1;
|
||||||
delete $1;
|
delete $1;
|
||||||
if ($2 == nullptr && formal_mode && ($$->str == "\\$initstate" || $$->str == "\\$anyconst" || $$->str == "\\$aconst"))
|
if ($2 == nullptr && formal_mode && ($$->str == "\\$initstate" || $$->str == "\\$anyconst"))
|
||||||
$$->type = AST_FCALL;
|
$$->type = AST_FCALL;
|
||||||
} |
|
} |
|
||||||
hierarchical_id non_opt_multirange {
|
hierarchical_id non_opt_multirange {
|
||||||
|
|
|
@ -118,7 +118,6 @@ struct CellTypes
|
||||||
setup_type("$assume", {A, EN}, pool<RTLIL::IdString>(), true);
|
setup_type("$assume", {A, EN}, pool<RTLIL::IdString>(), true);
|
||||||
setup_type("$initstate", pool<RTLIL::IdString>(), {Y}, true);
|
setup_type("$initstate", pool<RTLIL::IdString>(), {Y}, true);
|
||||||
setup_type("$anyconst", pool<RTLIL::IdString>(), {Y}, true);
|
setup_type("$anyconst", pool<RTLIL::IdString>(), {Y}, true);
|
||||||
setup_type("$aconst", pool<RTLIL::IdString>(), {Y}, true);
|
|
||||||
setup_type("$equiv", {A, B}, {Y}, true);
|
setup_type("$equiv", {A, B}, {Y}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1030,7 +1030,7 @@ namespace {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cell->type.in("$aconst", "$anyconst")) {
|
if (cell->type == "$anyconst") {
|
||||||
port("\\Y", param("\\WIDTH"));
|
port("\\Y", param("\\WIDTH"));
|
||||||
check_expected();
|
check_expected();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -421,7 +421,7 @@ pass. The combinatorial logic cells can be mapped to physical cells from a Liber
|
||||||
using the {\tt abc} pass.
|
using the {\tt abc} pass.
|
||||||
|
|
||||||
\begin{fixme}
|
\begin{fixme}
|
||||||
Add information about {\tt \$assert}, {\tt \$assume}, {\tt \$equiv}, {\tt \$initstate}, {\tt \$aconst}, and {\tt \$anyconst} cells.
|
Add information about {\tt \$assert}, {\tt \$assume}, {\tt \$equiv}, {\tt \$initstate}, and {\tt \$anyconst} cells.
|
||||||
\end{fixme}
|
\end{fixme}
|
||||||
|
|
||||||
\begin{fixme}
|
\begin{fixme}
|
||||||
|
|
|
@ -1322,18 +1322,6 @@ endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
module \$aconst (Y);
|
|
||||||
|
|
||||||
parameter WIDTH = 0;
|
|
||||||
|
|
||||||
output [WIDTH-1:0] Y;
|
|
||||||
|
|
||||||
assign Y = 'bx;
|
|
||||||
|
|
||||||
endmodule
|
|
||||||
|
|
||||||
// --------------------------------------------------------
|
|
||||||
|
|
||||||
module \$anyconst (Y);
|
module \$anyconst (Y);
|
||||||
|
|
||||||
parameter WIDTH = 0;
|
parameter WIDTH = 0;
|
||||||
|
|
Loading…
Reference in New Issue