one thing you can do to debug is execute "flatten"...
# hardware-beginners
t
one thing you can do to debug is execute "flatten" in yosys and look at the result (that flattens out the hierarchy and changes multi-wire assignments to a set of single assignments)