Fix r1010; bad prefix default

git-svn-id: file://localhost/svn/verilator/trunk/verilator@1011 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder 2008-03-26 14:53:53 +00:00
parent 93531e520a
commit 170427bba1

View File

@ -429,7 +429,7 @@ void V3Options::parseOpts (FileLine* fl, int argc, char** argv) {
}
// Default prefix to the filename
if (prefix()=="") m_prefix = string("V")+topModule();
if (prefix()=="" && topModule()!="") m_prefix = string("V")+topModule();
if (prefix()=="") m_prefix = string("V")+filenameNonExt(*(vFiles().begin()));
if (modPrefix()=="") m_modPrefix = prefix();