Fixed a bug with autowire bit size
authorClifford Wolf <clifford@clifford.at>
Sat, 7 Feb 2015 23:48:23 +0000 (00:48 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 7 Feb 2015 23:48:23 +0000 (00:48 +0100)
(removed leftover from when we tried to auto-size the wires)

frontends/ast/genrtlil.cc

index 17d62d4dd38184fa0ad3b076c3571ab202e0b179..f48101934744c498d5b30c6064a7031b792d894f 100644 (file)
@@ -1294,15 +1294,9 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
        // add entries to current_module->connections for assignments (outside of always blocks)
        case AST_ASSIGN:
                {
-                       if (children[0]->type == AST_IDENTIFIER && children[0]->id2ast && children[0]->id2ast->type == AST_AUTOWIRE) {
-                               RTLIL::SigSpec right = children[1]->genRTLIL();
-                               RTLIL::SigSpec left = children[0]->genWidthRTLIL(right.size());
-                               current_module->connect(RTLIL::SigSig(left, right));
-                       } else {
-                               RTLIL::SigSpec left = children[0]->genRTLIL();
-                               RTLIL::SigSpec right = children[1]->genWidthRTLIL(left.size());
-                               current_module->connect(RTLIL::SigSig(left, right));
-                       }
+                       RTLIL::SigSpec left = children[0]->genRTLIL();
+                       RTLIL::SigSpec right = children[1]->genWidthRTLIL(left.size());
+                       current_module->connect(RTLIL::SigSig(left, right));
                }
                break;