In a processing system having a processor core, an arithmetic unit, and a hardware interface component coupled between the processor core and the arithmetic unit, a method comprising:
- receiving, by the hardware interface component, a write access request from the processor core, wherein the write access request has a corresponding target address and write data, and wherein the target address corresponding to the write access address has lesser significant bits and greater significant bits, in which the lesser and greater significant bits do not overlap;
- using a lookup table of the hardware interface component to determine whether the target address corresponding to the write access request is within any one of a plurality of memory-mapped address ranges, wherein the plurality of memory- mapped address ranges are non-overlapping and wherein a different arithmetic operation is mapped to each of the plurality of memory-mapped address ranges;
- when the target address corresponding to the write access request is determined to be within a first memory-mapped address range of the plurality of memory-mapped address ranges:
- using the lesser significant bits of the target address corresponding to the write access request to identify a first input register, wherein the first memory-mapped address range includes the first input register and a result register,
- loading the write data into the first input register, wherein the write data is characterized as operand data,
- identifying, using the greater significant bits of the target address corresponding to the write access request, a first arithmetic operation to be performed by the arithmetic unit, wherein the first arithmetic operation is mapped to the first memory-mapped address range, and
- performing the first arithmetic operation by the arithmetic unit using the operand data in the first input register and loading a result of the first arithmetic operation into the result register.