diff --git a/tools/modelsim/commands.do b/tools/modelsim/commands.do index 01ce3567d4f8408f4965298c60b1964b541413d4..7b43eb44d78b1b61489b16bfb5f81b37e5366ce8 100644 --- a/tools/modelsim/commands.do +++ b/tools/modelsim/commands.do @@ -154,8 +154,8 @@ proc parse_for_libs arg_list { proc do_vlib arg_work { set modelsimId [vsimId] set dot_index [string first . $modelsimId] - set modelsimId [string range $modelsimId 0 [expr $dot_index-1]] - if {$modelsimId < 10} { + set majorId [string range $modelsimId 0 [expr $dot_index-1]] + if {$majorId <= 6} { vlib $arg_work } else { # The makefile that is created by vmake relies on using directories in vlib