verilator_basics
verilator_basics copied to clipboard
verilator_pt1 failed to “Verilate”
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.
Seems related to PR #2
Just do as the instruction,see https://verilator.org/warn/ENUMVALUE?v=5.008.You can find clear solution.