ucli 為vcs的命令交互模式,需要在編譯時加入參數以開啟ucli,否則ucli交互時只能使用簡單的'run'、'dump'、'quit'命令。
啟動方式:./simv -ucli
scope 顯示當前的頂層;scope xxx 進入xxx層;scope -up 回到上一層
show 顯示當前模塊的信號及子模塊;
show xxx -value -radix hex/bin/dec 以特定形式顯示信號值
run 運行仿真直到遇到$stop或者設置的斷點
run -posedge xx 運行到信號xx的上升沿
run -negedge xx 運行到xx信號的下降沿
run -change xx 運行到信號xx變化
stop 顯示已經設置的斷點
stop -posedge xx 在信號的上升沿設置斷點
stop -negedge xx
stop -condition {信號表達式} 在信號表達式為真的地方設置斷點
stop -delete xx 刪除斷點xx,xx為斷點數字編號
stop -posedge/-negedge/-condition {} -command {} 設置斷點,並在斷點處執行 command
例:stop -change sig0 -command {force sig1 [get sig2]} -quiet -continue
在sig0 變化時,將sig2的值賦給sig1,-conitnue 如果命令通過腳本被讀入的話,需要加上continue參數,不然仿真程序會暫停等待ucli 命令
restart 重新啟動ucli調試
force tb_top.xxx.xxx 0 將xxx信號force 為0
force -deposit tb_top.xxx.xxx 0 給xxx信號賦初值為0
force -file filename 讀取並執行filename內的force命令。文件內容格式與ucli命令行一致
