Compile+basic+logic+gate

Compile basic logic gate