We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79ad0d commit b0f3a94Copy full SHA for b0f3a94
uhdm-plugin/UhdmAst.cc
@@ -281,6 +281,9 @@ static void check_memories(AST::AstNode *module_node)
281
std::map<std::string, AST::AstNode *> memories;
282
visitEachDescendantStatic(module_node, [&](AST::AstNode *node) {
283
if (node->str == "\\$readmemh") {
284
+ if (node->children.size() != 2 || node->children[1]->str.empty() || node->children[1]->type != AST::AST_IDENTIFIER) {
285
+ log_error("%s:%d: Wrong usage of '\\$readmemh'\n", node->filename.c_str(), node->location.first_line);
286
+ }
287
add_force_convert_attribute(memories[node->children[1]->str], 0);
288
}
289
if (node->type == AST::AST_WIRE) {
0 commit comments