Merge pull request #162 from antmicro/jboc/benchmark
Benchmarks: fix with_uart parameter
This commit is contained in:
commit
4cfbc71fc2
|
@ -235,6 +235,8 @@ def main():
|
||||||
sim_config.add_module("serial2console", "serial")
|
sim_config.add_module("serial2console", "serial")
|
||||||
|
|
||||||
# Configuration --------------------------------------------------------------------------------
|
# Configuration --------------------------------------------------------------------------------
|
||||||
|
soc_kwargs["with_uart"] = False
|
||||||
|
|
||||||
soc_kwargs["sdram_module"] = args.sdram_module
|
soc_kwargs["sdram_module"] = args.sdram_module
|
||||||
soc_kwargs["sdram_data_width"] = int(args.sdram_data_width)
|
soc_kwargs["sdram_data_width"] = int(args.sdram_data_width)
|
||||||
soc_kwargs["sdram_verbosity"] = int(args.sdram_verbosity)
|
soc_kwargs["sdram_verbosity"] = int(args.sdram_verbosity)
|
||||||
|
|
|
@ -664,6 +664,10 @@ def main(argv=None):
|
||||||
transparent=args.plot_transparent,
|
transparent=args.plot_transparent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# exit with error when there is no single benchmark that succeeded
|
||||||
|
succeeded = sum(1 if d.result is not None else 0 for d in run_data)
|
||||||
|
if succeeded == 0:
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue