From: Florent Kermarrec Date: Thu, 22 Nov 2018 16:33:46 +0000 (+0100) Subject: utils/litex_read_verilog: fix generated indent on instance X-Git-Tag: 24jan2021_ls180~1474 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=beeca856e538f71f1e1211d5a327a528d1e8143d;p=litex.git utils/litex_read_verilog: fix generated indent on instance --- diff --git a/litex/utils/litex_read_verilog.py b/litex/utils/litex_read_verilog.py index b939d2f6..972d2153 100755 --- a/litex/utils/litex_read_verilog.py +++ b/litex/utils/litex_read_verilog.py @@ -38,17 +38,17 @@ def main(): length = "" if len(info["bits"]) == 1 else len(info["bits"]) migen_def.append(" " * 8 + "self.{} = Signal({})".format(name, length)) migen_def.append("") - migen_def.append(" "*4 + "# # #") + migen_def.append(" "*8 + "# # #") migen_def.append("") - migen_def.append(" "*4 + "self.specials += Instance(\"{}\",".format(module)) + migen_def.append(" "*8 + "self.specials += Instance(\"{}\",".format(module)) for name, info in j["modules"][module]["ports"].items(): io_prefix = { "input": "i", "output": "o", "inout": "io" }[info["direction"]] - migen_def.append(" "*8 + "{}_{}=self.{},".format(io_prefix, name, name)) - migen_def.append(" "*4 + ")") + migen_def.append(" "*12 + "{}_{}=self.{},".format(io_prefix, name, name)) + migen_def.append(" "*8 + ")") migen_def.append("") print("\n".join(migen_def))