看板 Electronics 關於我們 聯絡資訊
下面是我寫的多工器部分code.. 不知道哪裡錯了.. 一直出現Error: Lval 'result' cannot be a net 麻煩幫幫忙~_~...跟他非常不熟orz input[3:0] a,b,c,d,e,f,g,h; input[2:0] select; output[3:0] result; case(select[2]) 1'b0: begin result = (select[1]==0)?(select[0]==0?a:b):(select[0]==0?c:d); end 1'b1: begin result = (select[1]==0)?(select[0]==0?e:f):(select[0]==0?g:h); end endcase -- ● 17 ˇBaseball 棒球 ◎中華健兒齊出擊 淘汰郎回家吃自己 爆!wubaiwubai/smi ● 17 ˇBaseball 棒球 ◎好好把握難得能打壓中國的機會吧! 爆!wubaiwubai/smi ● 17 ˇBaseball 棒球 ◎冠軍戰: 日本 vs 古巴 爆!wubaiwubai/smi -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.10.3
stief:output宣告成reg?? 03/21 17:15