break;
case AST_FCALL:
- if (str == "\\$anyconst" || str == "\\$aconst") {
+ if (str == "\\$anyconst") {
if (GetSize(children) == 1) {
while (children[0]->simplify(true, false, false, 1, -1, false, true) == true) { }
if (children[0]->type != AST_CONSTANT)
} break;
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;
if (GetSize(children) > 1)
goto apply_newNode;
}
- // $anyconst and $aconst are mapped in AstNode::genRTLIL()
- if (str == "\\$anyconst" || str == "\\$aconst")
+ // $anyconst is mapped in AstNode::genRTLIL()
+ if (str == "\\$anyconst")
return false;
if (str == "\\$clog2")
$$ = new AstNode(AST_IDENTIFIER, $2);
$$->str = *$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;
} |
hierarchical_id non_opt_multirange {
setup_type("$assume", {A, EN}, pool<RTLIL::IdString>(), true);
setup_type("$initstate", 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);
}
return;
}
- if (cell->type.in("$aconst", "$anyconst")) {
+ if (cell->type == "$anyconst") {
port("\\Y", param("\\WIDTH"));
check_expected();
return;
using the {\tt abc} pass.
\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}
\begin{fixme}
// --------------------------------------------------------
-module \$aconst (Y);
-
-parameter WIDTH = 0;
-
-output [WIDTH-1:0] Y;
-
-assign Y = 'bx;
-
-endmodule
-
-// --------------------------------------------------------
-
module \$anyconst (Y);
parameter WIDTH = 0;