VHDL implementation of a 32-bit general-purpose RISC microprocessor