[topgen] Add missing newline at end of file in top.gen.hjson

Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.org>
diff --git a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
index 74f8518..e5fda17 100644
--- a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
+++ b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
@@ -22325,4 +22325,4 @@
       }
     ]
   }
-}
\ No newline at end of file
+}
diff --git a/util/topgen.py b/util/topgen.py
index 1398cc5..6e0f0ab 100755
--- a/util/topgen.py
+++ b/util/topgen.py
@@ -1136,7 +1136,7 @@
 """.format(topname=topname, seed=completecfg["rnd_cnst_seed"])
 
     genhjson_path.write_text(genhdr + gencmd +
-                             hjson.dumps(completecfg, for_json=True))
+                             hjson.dumps(completecfg, for_json=True) + '\n')
 
     if not args.no_top or args.top_only: