ulp_insn union
Instruction format structure All ULP instructions are 32 bit long. This union contains field layouts used by all of the supported instructions. This union also includes a special "macro" instruction layout. This is not a real instruction which can be executed by the CPU. It acts as a token which is removed from the program by the ulp_process_macros_and_load function. These structures are not intended to be used directly. Preprocessor definitions provided below fill the fields of these structure with the right arguments.
Fields
Format of DELAY instruction.
Format of ST instruction.
Format of LD instruction.
Format of HALT instruction.
Format of ALU instruction (both sources are registers).
Format of ALU instruction (stage counter and an immediate).
Format of RD_REG instruction.
Format of ADC instruction.
Format of BRANCH instruction (absolute address).
Format of BRANCH instruction (relative address, conditional on R0).
Format of BRANCH instruction (relative address, conditional on the stage counter).
Format of ALU instruction (one source is an immediate).
Format of WR_REG instruction.
Format of END instruction with sleep.
Format of tokens used by MACROs.
Encoded instruction for ULP coprocessor.
Format of TSENS instruction.
Format of I2C instruction.
Format of END instruction with wakeup.