v2s: Only output leaf models file.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/vlog_to_model.py b/vlog_to_model.py
index 6fd12c3..445a6e7 100755
--- a/vlog_to_model.py
+++ b/vlog_to_model.py
@@ -152,7 +152,7 @@
             continue
         deps_files.add(im.group(1))
 
-if True:
+if len(deps_files) > 0:
     # Has dependencies, not a leaf model
     for df in sorted(deps_files):
         abs_base = os.path.dirname(os.path.abspath(args.infiles[0]))
@@ -175,7 +175,7 @@
             outfile=outfile,
             xptr="xpointer(models/child::node())"
         )
-if True:
+else:
     # Is a leaf model
     topname = tmod.attr("MODEL_NAME", top)
     modclass = tmod.attr("CLASS", "")