3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-24 02:49:43 +00:00

Did share, opt_share and fsm

This commit is contained in:
Miodrag Milanovic 2026-03-20 12:47:15 +01:00
parent 652bbd2b41
commit d1dc23d9f8
13 changed files with 122 additions and 253 deletions

View file

@ -22,9 +22,10 @@ if args.seed is None:
print(f"xprop PRNG seed: {args.seed}")
makefile = open("Makefile", "w")
gen_tests_makefile.print_header(out = makefile)
makefile = open("Makefile", "w")
with gen_tests_makefile.redirect_stdout(makefile):
gen_tests_makefile.print_header()
def add_test(name, src, seq=False):
if not re.search(args.filter, name):
@ -35,9 +36,9 @@ def add_test(name, src, seq=False):
with open(f"{workdir}/uut.v", "w") as uut:
print(src, file=uut)
seq_arg = " -s" if seq else ""
gen_tests_makefile.generate_target(workdir,
f"cd {workdir} && python3 -u ../test.py -S {args.seed} -c {args.count}{seq_arg} > test.log 2>&1",
out=makefile)
with gen_tests_makefile.redirect_stdout(makefile):
gen_tests_makefile.generate_target(workdir,
f"cd {workdir} && python3 -u ../test.py -S {args.seed} -c {args.count}{seq_arg} > test.log 2>&1")
def cell_test(name, cell, inputs, outputs, params, initial={}, defclock=False, seq=False):
ports = []