看板 Electronics 關於我們 聯絡資訊
※ 引述《stevenf3 (Life)》之銘言: : 下面是我寫的多工器部分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; reg [3:0] result; always @(select or a or b or c or d or e or f or g or h) begin : 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 end -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.66.243.100