n-kremeris / verilator_basics

MIT License
50 stars 6 forks source link

verilator_pt1 failed to “Verilate” #3

Open ShengzheWU opened 1 year ago

ShengzheWU commented 1 year ago

input "verilator --cc alu.sv" to Terminal , error appears. %Error-ENUMVALUE: alu.sv:32:40: Implicit conversion to enum '$unit::operation_t' from 'logic' (IEEE 1800-2017 6.19.3) : ... In instance alu : ... Suggest use enum's mnemonic, or static cast 32 | op_in_r <= '0; | ^~ ... For error description see https://verilator.org/warn/ENUMVALUE?v=5.008 %Error: Exiting due to 1 error(s) ... See the manual at https://verilator.org/verilator_doc.html for more assistance. ![Uploading Screenshot from 2023-06-01 17-43-53.png…]()

pcotret commented 1 year ago

Seems related to PR #2

poisionous-snake commented 5 months ago

Just do as the instruction,see https://verilator.org/warn/ENUMVALUE?v=5.008.You can find clear solution.