Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1064 Discussions

ow to calculate latency and throughput of instruction?

maa1
Beginner
212 Views
Let some instruction "INSTR reg,reg" have latency Lr and throughput Tr
and let cache memory have latency Lm and throughput Tm
how to calculate latency and throughput of instruction "INSTR mem,reg"?
Simply add Lr+Lm and Tr+Tm?
0 Kudos
2 Replies
Max_L
Employee
212 Views
Hi,

yes, you need to sum the latencies, but take the _minimum_ of the two throughputsin the case of e.g. ALU operation and memory operation, since they don't share execution ports, but it may be different for other operations/instructions chains. Plus, if your instruction is a vector integer one (e.g. SSE2) you need to add 1 cycle of inter-stack bypass latency between load and operation, add 2 cycles in the case offloatingpointoperation for Nehalem processor.

-Max
maa1
Beginner
212 Views
but take the _minimum_ of the two throughputsin the case of e.g. ALU operation and memory operation, since they don't share execution ports, but it may be different for other operations/instructions chains.

-Max

"INSTR mem,reg" uses two ports?
how to calculate throughput, if there is no free port for memory operation?
Reply