litescope_cli: add capture subsampling support.
This commit is contained in:
parent
2739d5a069
commit
02b543e5ba
|
@ -62,6 +62,7 @@ def parse_args():
|
||||||
parser.add_argument("-v", "--value-trigger", action="append", nargs=2, help="Add conditional trigger with given value",
|
parser.add_argument("-v", "--value-trigger", action="append", nargs=2, help="Add conditional trigger with given value",
|
||||||
metavar=("TRIGGER", "VALUE"))
|
metavar=("TRIGGER", "VALUE"))
|
||||||
parser.add_argument("-l", "--list", action="store_true", help="List signal choices")
|
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("--offset", default="32", help="Capture Offset.")
|
||||||
parser.add_argument("--length", default="128", help="Capture Length.")
|
parser.add_argument("--length", default="128", help="Capture Length.")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -107,6 +108,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
|
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True)
|
||||||
analyzer.configure_group(0)
|
analyzer.configure_group(0)
|
||||||
|
analyzer.configure_subsampler(int(args.subsampling, 0))
|
||||||
if not add_triggers(args, analyzer, signals):
|
if not add_triggers(args, analyzer, signals):
|
||||||
print("WARNING: no trigger added!")
|
print("WARNING: no trigger added!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue