|
10 | 10 | @click.version_option(prog_name="RISC-V Compliance Test Generator",version=__version__)
|
11 | 11 | @click.option('--verbose', '-v', default='error', help='Set verbose level', type=click.Choice(['info','error','debug','warning'],case_sensitive=False))
|
12 | 12 | @click.option('--out-dir', '-d', default='./', type=click.Path(resolve_path=True,writable=True), help='Output directory path')
|
| 13 | +@click.option('--env-dir', '-e', default='./', type=click.Path(resolve_path=True,writable=True), help='Env directory path') |
13 | 14 | @click.option('--randomize','-r', default=False , is_flag='True', help='Randomize Outputs.')
|
14 | 15 | @click.option('--cgf','-cf',multiple=True,type=click.Path(exists=True,resolve_path=True,readable=True),help="Path to the cgf file(s). Multiple allowed.")
|
15 | 16 | @click.option('--procs','-p',type=int,default=1,help='Max number of processes to spawn')
|
|
18 | 19 | hardware.",default='32')
|
19 | 20 | @click.option("--inst",type=int,help="Maximum number of Macro Instances per test.")
|
20 | 21 | @click.option("--z-inx", '-ix', type=bool, default='False', help="If the extension is Z*inx then pass True otherwise defaulted to False")
|
21 |
| -def cli(verbose, out_dir, randomize , cgf,procs,base_isa, flen,inst,z_inx): |
| 22 | +def cli(verbose, out_dir, env_dir, randomize , cgf,procs,base_isa, flen,inst,z_inx): |
22 | 23 | if not os.path.exists(out_dir):
|
23 | 24 | os.mkdir(out_dir)
|
24 | 25 | if '32' in base_isa:
|
25 | 26 | xlen = 32
|
26 | 27 | elif '64' in base_isa:
|
27 | 28 | xlen = 64
|
28 |
| - ctg(verbose, out_dir, randomize ,xlen, int(flen), cgf,procs,base_isa,inst,z_inx) |
| 29 | + ctg(verbose, out_dir, env_dir, randomize ,xlen, int(flen), cgf,procs,base_isa,inst,z_inx) |
0 commit comments