From 963b26283afc94e50be61122ea044ec7f0d7728f Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 1 Sep 2007 15:06:53 -0700 Subject: [PATCH] Generate scopes are more like begin-end scopes Apparently making generate scopes look like module instances confuses some 3rd party tools that see this information in the VCD dump. --- vvp/vpi_scope.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vvp/vpi_scope.cc b/vvp/vpi_scope.cc index b9203118d..4eaf21060 100644 --- a/vvp/vpi_scope.cc +++ b/vvp/vpi_scope.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2003 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2007 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -328,9 +328,7 @@ compile_scope_decl(char*label, char*type, char*name, char*tname, char*parent) else if (strcmp(type,"begin") == 0) scope->base.vpi_type = &vpip_scope_begin_rt; else if (strcmp(type,"generate") == 0) - // Generate blocks are not really modules, but this is a - // hack that will work for now. - scope->base.vpi_type = &vpip_scope_module_rt; + scope->base.vpi_type = &vpip_scope_begin_rt; else { scope->base.vpi_type = &vpip_scope_module_rt; assert(0);