Research Article

Embedded Microprocessor Extension Design and Optimization for Real-Time Edge Computing

Table 2

Extended temporal instructions.

NotationsImplementationSemantics

get_timecsrr rd, CSR_clockRead CSR_CLOCK to get current time
set_comparecsrw CSR_compare, r1Cancel the previous timing (if any) and set a new timing
delay_untilcustom0 zero, zero, zero, 0Stall until current time exceeds the value in provided register
wait_untilcustom1 zero, zero, zero, 0Wait until current time exceeds the value in provided register
interrupt_on_expirecustom2 zero, zero, zero, 0Interrupt program when current time exceeds the value in provided register
exception_on_expirecustom2 zero, zero, zero, 1Throw exception when current time exceeds the value in provided register
meet_time/registercustom3 0, r1, 0, 0Label the entry of the code, record the timing limit by value in register
meet_time/immediatelui zero, immLabel the entry of the code, record the timing limit by value in immediate field
final_deadlinecustom3 zero,zero,zero, 0Label the end of the code, throw exception when current time exceeds