Skip to main content

Module model

Module model 

Source
Expand description

Scheduling information for each opcode

Structsยง

ExecPorts ๐Ÿ”’
Identify one or more CPU execution ports

Constantsยง

MAX_LATENCY ๐Ÿ”’
Maximum value of instruction_latency_cycles() for any Opcode
NUM_EXECUTION_PORTS ๐Ÿ”’
Number of execution ports in our simulated microarchitecture
P0 ๐Ÿ”’
Port P0 (second choice) only
P01 ๐Ÿ”’
Either port P0 or P1
P015 ๐Ÿ”’
Any of the three ports
P05 ๐Ÿ”’
Either port P0 or P5
P1 ๐Ÿ”’
Port P1 (third choice) only
P5 ๐Ÿ”’
Port P5 (first choice) only
SCHEDULE_SIZE ๐Ÿ”’
Total number of cycles to store schedule data for
TARGET_CYCLES ๐Ÿ”’
Number of simulated cycles we run before stopping program generation

Functionsยง

instruction_latency_cycles ๐Ÿ”’
Latency for each operation, in cycles
instruction_sub_cycle_count ๐Ÿ”’
Each instruction advances the earliest possible issuing cycle by one sub-cycle per micro-op.
micro_operations ๐Ÿ”’
Break an instruction down into one or two micro-operation port sets.