Bit logic functions and function blocks

Elementary logic operations, edge detection and bistable set/reset function blocks.