Fixes from debugging in edaplayground.
 - posedge syntax
 - eliminated use of "node" for logic
 - added definition for clock gating macro