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:
parent
652bbd2b41
commit
d1dc23d9f8
13 changed files with 122 additions and 253 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue