verilator_basics icon indicating copy to clipboard operation
verilator_basics copied to clipboard

verilator_pt1 failed to “Verilate”

Open ShengzheWU opened this issue 1 year ago • 2 comments

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…

ShengzheWU avatar Jun 01 '23 09:06 ShengzheWU

Seems related to PR #2

pcotret avatar Jun 15 '23 14:06 pcotret

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

poisionous-snake avatar Mar 25 '24 11:03 poisionous-snake