Implement a system with 4 registers (Ra, Rb, Rc, Rd), each is 4-bit in width, and peripheral logic to support a set of instruction code: {init, addi, add, sub }.