Commit ff44c62d authored by Tristan Gingold's avatar Tristan Gingold

makefilevsim.py: simplify.

parent ce11eb90
...@@ -121,12 +121,9 @@ class MakefileVsim(MakefileSim): ...@@ -121,12 +121,9 @@ class MakefileVsim(MakefileSim):
self.write(__create_copy_rule(filename, filesource)) self.write(__create_copy_rule(filename, filesource))
for lib in libs: for lib in libs:
self.write(lib + shell.makefile_slash_char() + "." + lib + ":\n") self.write(lib + shell.makefile_slash_char() + "." + lib + ":\n")
vmap_command = "vmap $(VMAP_FLAGS)" self.write("\t(vlib {0} && vmap $(VMAP_FLAGS) {0} && {1} {0}{2}.{0} )".format(
self.write(' '.join(["\t(vlib", lib, "&&", vmap_command, lib, "&&", lib, shell.touch_command(), shell.makefile_slash_char()))
shell.touch_command(), lib + shell.makefile_slash_char() + self.write("|| {} {} \n\n\n".format(shell.del_command(), lib))
"." + lib, ")"]))
self.write(' '.join(["||", shell.del_command(), lib, "\n"]))
self.write('\n\n')
# rules for all _primary.dat files for sv # rules for all _primary.dat files for sv
for vlog in fileset.filter(VerilogFile).sort(): for vlog in fileset.filter(VerilogFile).sort():
self.write("%s: %s" % (os.path.join( self.write("%s: %s" % (os.path.join(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment