[myhdl-list] [PATCH 3 of 3] toVHDL: place entity documentation above the entity declaration
Brought to you by:
jandecaluwe
From: Angel E. <ang...@gm...> - 2012-10-10 15:48:23
|
# HG changeset patch # User Angel Ezquerra <ang...@gm...> # Date 1349882593 -7200 # Branch 0.8-dev # Node ID 58ac2e97c7efbe7e3c9784b8ac25218daa056e40 # Parent 54652ce766a4f8ee6318e662a5394df20a899711 toVHDL: place entity documentation above the entity declaration Up until now the entity documentation was placed betweent he entity and the architecture, which is an unusual location for entity level documentation. diff --git a/myhdl/conversion/_toVHDL.py b/myhdl/conversion/_toVHDL.py --- a/myhdl/conversion/_toVHDL.py +++ b/myhdl/conversion/_toVHDL.py @@ -241,6 +241,7 @@ if needPck: print >> f, "use %s.pck_%s.all;" % (lib, intf.name) print >> f + print >> f, doc print >> f, "entity %s is" % intf.name if intf.argnames: f.write(" port (") @@ -273,7 +274,6 @@ f.write("\n %s: in %s%s" % (portname, p, r)) f.write("\n );\n") print >> f, "end entity %s;" % intf.name - print >> f, doc print >> f print >> f, "architecture %s of %s is" % (arch, intf.name) print >> f |