@@ -297,7 +297,7 @@ def build_gate_gold(args, cfg, job):
297
297
print ("opt_clean" , file = f )
298
298
print ("check -initdrv" , file = f )
299
299
print ("setundef -undriven -undef" , file = f )
300
- print ("write_ilang {}/gold.il" .format (args .workdir ), file = f )
300
+ print ("write_rtlil {}/gold.il" .format (args .workdir ), file = f )
301
301
with open (args .workdir + "/gate.ys" , "w" ) as f :
302
302
for line in cfg .gate :
303
303
print (line , file = f )
@@ -306,7 +306,7 @@ def build_gate_gold(args, cfg, job):
306
306
print ("opt_clean" , file = f )
307
307
print ("check -initdrv" , file = f )
308
308
print ("setundef -undriven -undef" , file = f )
309
- print ("write_ilang {}/gate.il" .format (args .workdir ), file = f )
309
+ print ("write_rtlil {}/gate.il" .format (args .workdir ), file = f )
310
310
311
311
gold_task = EqyTask (job , "read_gold" , [], "{yosys}{gopt} -ql {workdir}/gold.log {workdir}/gold.ys" .format (
312
312
yosys = args .exe_paths ["yosys" ], gopt = " -g" if args .debugmode else "" , workdir = args .workdir ))
@@ -326,11 +326,11 @@ def build_get_ids(args, cfg, job):
326
326
plugin_path = root_path () # for development
327
327
with open (args .workdir + "/get_ids.ys" , "w" ) as f :
328
328
print ("plugin -i {}/eqy_combine.so" .format (plugin_path ), file = f )
329
- print ("read_ilang {}/gold.il" .format (args .workdir ), file = f )
329
+ print ("read_rtlil {}/gold.il" .format (args .workdir ), file = f )
330
330
print ("uniquify" , file = f )
331
331
print ("hierarchy" , file = f )
332
332
print ("design -stash gold" , file = f )
333
- print ("read_ilang {}/gate.il" .format (args .workdir ), file = f )
333
+ print ("read_rtlil {}/gate.il" .format (args .workdir ), file = f )
334
334
print ("uniquify" , file = f )
335
335
print ("hierarchy" , file = f )
336
336
print ("design -stash gate" , file = f )
@@ -374,11 +374,11 @@ def build_recode(args, ctx, job):
374
374
plugin_path = root_path () # for development
375
375
with open (args .workdir + "/recode.ys" , "w" ) as f :
376
376
print ("plugin -i {}/eqy_recode.so" .format (plugin_path ), file = f )
377
- print ("read_ilang {}/gold.il" .format (args .workdir ), file = f )
377
+ print ("read_rtlil {}/gold.il" .format (args .workdir ), file = f )
378
378
print ("design -stash gold" , file = f )
379
- print ("read_ilang {}/gate.il" .format (args .workdir ), file = f )
379
+ print ("read_rtlil {}/gate.il" .format (args .workdir ), file = f )
380
380
print ("{dbg}eqy_recode -recode {wd}/recode.ids" .format (dbg = "debug " if args .debugmode else "" , wd = args .workdir ), file = f )
381
- print ("write_ilang {}/gate_recoded.il" .format (args .workdir ), file = f )
381
+ print ("write_rtlil {}/gate_recoded.il" .format (args .workdir ), file = f )
382
382
383
383
recode_task = EqyTask (job , "recode" , [], "{yosys}{gopt} -ql {workdir}/recode.log {workdir}/recode.ys" .format (
384
384
yosys = args .exe_paths ["yosys" ], gopt = " -g" if args .debugmode else "" , workdir = args .workdir ))
@@ -396,16 +396,16 @@ def build_combined(args, cfg, job):
396
396
plugin_path = root_path () # for development
397
397
with open (args .workdir + "/combine.ys" , "w" ) as f :
398
398
print ("plugin -i {}/eqy_combine.so" .format (plugin_path ), file = f )
399
- print ("read_ilang {}/gold.il" .format (args .workdir ), file = f )
399
+ print ("read_rtlil {}/gold.il" .format (args .workdir ), file = f )
400
400
print ("uniquify" , file = f )
401
401
print ("hierarchy" , file = f )
402
402
print ("design -stash gold" , file = f )
403
- print ("read_ilang {}/gate_recoded.il" .format (args .workdir ), file = f )
403
+ print ("read_rtlil {}/gate_recoded.il" .format (args .workdir ), file = f )
404
404
print ("uniquify" , file = f )
405
405
print ("hierarchy" , file = f )
406
406
print ("design -stash gate" , file = f )
407
407
print ("{dbg}eqy_combine -gold_ids {wd}/gold.ids -gate_ids {wd}/gate_recoded.ids" .format (dbg = "debug " if args .debugmode else "" , wd = args .workdir ), file = f )
408
- print ("write_ilang {}/combined.il" .format (args .workdir ), file = f )
408
+ print ("write_rtlil {}/combined.il" .format (args .workdir ), file = f )
409
409
410
410
combine_task = EqyTask (job , "combine" , [], "{yosys}{gopt} -ql {workdir}/combine.log {workdir}/combine.ys" .format (
411
411
yosys = args .exe_paths ["yosys" ], gopt = " -g" if args .debugmode else "" , workdir = args .workdir ))
@@ -742,7 +742,7 @@ def make_partitions(args, cfg, job):
742
742
plugin_path = root_path () # for development
743
743
with open (args .workdir + "/partition.ys" , "w" ) as f :
744
744
print ("plugin -i {}/eqy_partition.so" .format (plugin_path ), file = f )
745
- print ("read_ilang combined.il" .format (args .workdir ), file = f )
745
+ print ("read_rtlil combined.il" .format (args .workdir ), file = f )
746
746
if cfg .options .insbuf :
747
747
print ("insbuf -chain" , file = f )
748
748
print ("{dbg}eqy_partition -matched_ids matched.ids -partition_ids partition.ids" .format (dbg = "debug " if args .debugmode else "" ), file = f )
@@ -889,7 +889,7 @@ def write(self, job, partition):
889
889
with open (self .path (partition .name , "run.ys" ), "w" ) as ys_f :
890
890
print (f"verilog_defaults -add -D CHECK_OUTPUTS" , file = ys_f )
891
891
print (f"read_verilog -sv ../../../partitions/{ partition .name } .sv" , file = ys_f )
892
- print (f"read_ilang ../../../partitions/{ partition .name } .il" , file = ys_f )
892
+ print (f"read_rtlil ../../../partitions/{ partition .name } .il" , file = ys_f )
893
893
print (f"hierarchy -top miter; proc; chformal -cover -remove" , file = ys_f )
894
894
print ("async2sync" , file = ys_f ) # async2sync after a user script clk2fflogic is a noop
895
895
print (f"formalff -clk2ff -ff2anyinit gate.{ partition .name } " , file = ys_f )
@@ -930,7 +930,7 @@ def write(self, job, partition):
930
930
[script]
931
931
verilog_defaults -add -D CHECK_OUTPUTS
932
932
read_verilog -sv ../../../../../partitions/{ partition .name } .sv
933
- read_ilang ../../../../../partitions/{ partition .name } .il
933
+ read_rtlil ../../../../../partitions/{ partition .name } .il
934
934
hierarchy -top miter; proc
935
935
""" [1 :- 1 ]), file = sby_f )
936
936
0 commit comments