我用MAST寫了一個反相器的模塊,如下
template inverter in out
state logic_4 in, out
{
when (event_on(in)) {
if (in == l4_0) schedule_event(time, out, l4_1)
else if (in == l4_1) schedule_event(time, out, l4_0)
else if (in == l4_x) schedule_event(time, out, l4_x)
}
}
畫了一個symbol,一個入口in,一個出口out,在仿真時總是出現can not find "ide_a2dn.sin" using "saber_data_path"和undefined template ide_a2dn.sin,我搜索整個目錄也沒有發現這個template,敬請指教.
請教MAST寫邏輯器件遇到的問題,
全部回復(5)
正序查看
倒序查看
@sidneychai
你需要設置環境變量,使其指向template和symbol所在的路徑
的確是電源的問題,因為V_pulse輸出的不是state參數無法與邏輯器件直接相連,我自己弄了個數字電源就沒有問題了.非常感謝,因為我得sabersketch沒有數字器件,所以都得我自己寫,希望大家多交流.
500) {this.resized=true; this.width=500; this.alt='這是一張縮略圖,點擊可放大。\n按住CTRL,滾動鼠標滾輪可自由縮放';this.style.cursor='hand'}" onclick="if(!this.resized) {return true;} else {window.open('http://u.dianyuan.com/bbs/u/21/1096491773.gif');}" onmousewheel="return imgzoom(this);">

0
回復