Status Register

In the next step, the status flags should only be updated when a clock signal transitions from zero to one (rising edge). To achieve this, add an input named “clock” to your “Status Flags” module and use D flip-flops to store the values of ZF, CF, SF, and OF.

You can test the module with a circuit like this: