From d74b39b8c5b41ddc2802fd318e2cbc75ffbe1cc3 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Dec 2019 10:20:05 +0100 Subject: [PATCH] targets: add usb3_pipe banner --- kc705.py | 4 +++- netv2.py | 4 +++- pcie_screamer.py | 4 +++- versa_ecp5.py | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/kc705.py b/kc705.py index d0eafb4..5a00abe 100755 --- a/kc705.py +++ b/kc705.py @@ -195,7 +195,9 @@ def load(): import argparse def main(): - parser = argparse.ArgumentParser() + with open("README.md") as f: + description = [str(f.readline()) for i in range(7)] + parser = argparse.ArgumentParser(description="".join(description[1:]), formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--build", action="store_true", help="build bitstream") parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)") args = parser.parse_args() diff --git a/netv2.py b/netv2.py index e968a11..fe5a3f4 100755 --- a/netv2.py +++ b/netv2.py @@ -145,7 +145,9 @@ def load(): import argparse def main(): - parser = argparse.ArgumentParser() + with open("README.md") as f: + description = [str(f.readline()) for i in range(7)] + parser = argparse.ArgumentParser(description="".join(description[1:]), formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--build", action="store_true", help="build bitstream") parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)") parser.add_argument("--device", default="xc7a35t", help="FPGA device (xc7a35t (default) or xc7a100t)") diff --git a/pcie_screamer.py b/pcie_screamer.py index 6f73011..cfcd4ff 100755 --- a/pcie_screamer.py +++ b/pcie_screamer.py @@ -146,7 +146,9 @@ def load(): import argparse def main(): - parser = argparse.ArgumentParser() + with open("README.md") as f: + description = [str(f.readline()) for i in range(7)] + parser = argparse.ArgumentParser(description="".join(description[1:]), formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--build", action="store_true", help="build bitstream") parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)") args = parser.parse_args() diff --git a/versa_ecp5.py b/versa_ecp5.py index 88bcbcb..1f2dbab 100755 --- a/versa_ecp5.py +++ b/versa_ecp5.py @@ -210,7 +210,9 @@ jtag newtap ecp5 tap -irlen 8 -expected-id 0x81112043 import argparse def main(): - parser = argparse.ArgumentParser() + with open("README.md") as f: + description = [str(f.readline()) for i in range(7)] + parser = argparse.ArgumentParser(description="".join(description[1:]), formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--build", action="store_true", help="build bitstream") parser.add_argument("--load", action="store_true", help="load bitstream (to SRAM)") args = parser.parse_args()