emu-russia / dmgcpu

DMG CPU Reverse Engineering
Creative Commons Zero v1.0 Universal
29 stars 4 forks source link

Seq.v does not synthesize due to declaration order #134

Closed SonoSooS closed 1 year ago

SonoSooS commented 1 year ago

When using other tools to synthesize the HDL, they error out because assign happens to a wire which is not defined yet (that is, the wire is declared after there is an assign using it).

Rearranging the lines, so that the ordering becomes input/output/inout, then wire, then assign, and then module instantiations, then the file successfully snythesizes.