Skip to content

Commit

Permalink
litescope_cli: add capture subsampling support.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Aug 25, 2020
1 parent 2739d5a commit 02b543e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litescope/software/litescope_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def parse_args():
parser.add_argument("-v", "--value-trigger", action="append", nargs=2, help="Add conditional trigger with given value",
metavar=("TRIGGER", "VALUE"))
parser.add_argument("-l", "--list", action="store_true", help="List signal choices")
parser.add_argument("--subsampling", default="1", help="Capture Subsampling.")
parser.add_argument("--offset", default="32", help="Capture Offset.")
parser.add_argument("--length", default="128", help="Capture Length.")
args = parser.parse_args()
Expand Down Expand Up @@ -107,6 +108,7 @@ def main():
try:
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
analyzer.configure_group(0)
analyzer.configure_subsampler(int(args.subsampling, 0))
if not add_triggers(args, analyzer, signals):
print("WARNING: no trigger added!")

Expand Down

0 comments on commit 02b543e

Please sign in to comment.