NYU-MLDA / ABC-RL

This is work-in-progress (WIP) refactored implementation of "Retreival-guided Reinforcement Learning for Boolean Circuit Minimization" work published in ICLR 2024.
https://openreview.net/forum?id=0t1O8ziRZp
GNU General Public License v3.0
3 stars 1 forks source link

Error of parsing 7nm.lib file #2

Open sun123-cmd opened 4 months ago

sun123-cmd commented 4 months ago

Hello!

While running mcts_agent_training.sh script,: In log_alu2run15001.log file at /home/sun/Desktop/ABC-RL/ABC-RL_ICLR/dump/test_TTSPLIT5001_replayMem_320_BS320_run15001,

It seems that code can' t parse 7nm.lib file:

 1 ABC command line: "read /home/sun/Desktop/ABC-RL/ABC-RL_ICLR/dump/test_TTSPLIT5001_replayMem_320_BS320_run15001/run15001/alu2+01006036154+step10.aig; read_lib /home/    sun/Desktop/ABC-RL/lib/7nm/7nm.lib; map ; topo;stime ".
  2 
  3 File "/home/sun/Desktop/ABC-RL/lib/7nm/7nm.lib". Line 960249. Failed to parse entry "*/".
  4 Parsing failed.  Parsing time =     0.26 sec
  5 Library "asap7sc7p5t_22b_AO_RVT_SS_170906" from "/home/sun/Desktop/ABC-RL/lib/7nm/7nm.lib" has 155 cells (0 skipped: 0 seq; 0 tri-state; 0 no func; 0 dont_use).  Tim    e =     0.36 sec
  6 Warning: Detected 2 multi-output gates (for example, "FAx1_ASAP7_75t_R").
  7 WireLoad = "none"  ^[[1;33mGates =    279^[[0m ( 14.7 %)   ^[[1;32mCap =  0.8 ff^[[0m (  2.7 %)   ^[[1;36mArea =      323.33^[[0m ( 85.3 %)   ^[[1;35mDelay =   477.6    0 ps^[[0m  ( 16.8 %)

The same arror also occured in all of the running results.

animeshbchowdhury commented 4 months ago

The issue is coming from reading a line to be treated as comment. However, Lines 5-7 show that yosys was able to map the cells onto the design otherwise it would have failed.

We performed cec (manually as verification) to check if functionality wasn't corrupted and it was not. So, I ignored the entry of failing to parse. It can be taken care of by removing the comment from the lib file.