作者ckmarkoh (阿杰)
看板EE_DSnP
标题[问题] 关於cirCmd.cpp
时间Fri Dec 24 20:54:28 2010
1.spec里面写的CIRSimulate是
Usage: CIRSimulate <-Random | -File <string patternFile>>
[-Output (string logFile)]
可是我输入hel cirsim所显示出来的是...
Usage: CIRSIMulate [-Summary | -Netlist]
我看code里面要parse的是按照第一种写法
但是我不管怎麽输入都会显示以下error:
fraig> cirsim -f txt1 -o txt2
Missing option after (txt2)!!
fraig> cirsim -f txt1 -o txt2 txt3
Missing option after (txt3)!!
fraig> cirsim -f txt1 -o txt2 txt3 txt4
Missing option after (txt4)!!
不管我打几个 Error一直是missing option
好像有个bug在code里面...
2.在 CIRGate <<(int gateId)> [<-FANIn | -FANOut><(int level)>]>
照spec上面所写 应该会有三种情况
Report the gates in the circuit.
If the option “-FANIn” or “-FANOut” is
NOT specified, print out the gate information such as ID, name (for PI..
可是cirCmd.cpp里面
if (doFanin)
thisGate->reportFanin(level);
else
thisGate->reportFanout(level);
只有这两种
如果没有-fanin就都会去执行reportFanout
例如:
fraig> cirg 1
PI 1
.....
所以是要自己去修改这部分 处理没有fanin和fanout的状况?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 58.114.204.36
※ 编辑: ckmarkoh 来自: 58.114.204.36 (12/24 20:56)
1F:推 ric2k1:哦! 我改一下!! 12/24 21:28
2F:→ ckmarkoh:谢谢 老师辛苦了! 12/24 21:39