—————————————————————————————————————現(xiàn)象:原因:解決方案: —————————————————————————————————————現(xiàn)象:Error
(10200): Verilog HDL Conditional Statement error at passometer.v(29): cannot
match operand(s) in the condition to the corresponding edges in the enclosing
event control of the always construct原因: 不能匹配操作條件,always的觸發(fā)條件之一是rst_n的下降沿,下降沿進(jìn)入邏輯后,rst_n為低電平,若要執(zhí)行復(fù)位操作,則需要“!rst_n” 
解決方案: 修改復(fù)位條件即可 if(!rst_n) 
—————————————————————————————————————現(xiàn)象:Error
(10028): Can't resolve multiple constant drivers for net "data[3]" at
ControlIO.v(44)原因: 在不同的always邏輯塊中,對同一個reg變量進(jìn)行了賦值。 
解決方案: 修改異常reg,將上例中data,改到一個always中。
|