Fix error for wire decl in always block, fixes #763
authorClifford Wolf <clifford@clifford.at>
Sat, 2 Mar 2019 19:40:57 +0000 (11:40 -0800)
committerClifford Wolf <clifford@clifford.at>
Sat, 2 Mar 2019 19:56:44 +0000 (11:56 -0800)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/ast/genrtlil.cc

index 2d591b29d31b8294925afc770838437d78fb5f7d..13383845a40f21ad5630398f841f2f55b5b618b8 100644 (file)
@@ -544,7 +544,11 @@ struct AST_INTERNAL::ProcessGenerator
                        break;
 
                case AST_WIRE:
-                       log_file_error(ast->filename, ast->linenum, "Found wire declaration in block without label!\n");
+                       log_file_error(ast->filename, ast->linenum, "Found reg declaration in block without label!\n");
+                       break;
+
+               case AST_ASSIGN:
+                       log_file_error(ast->filename, ast->linenum, "Found continous assignment in always/initial block!\n");
                        break;
 
                case AST_PARAMETER: