Forwardcom simulations

discussion of forwardcom instruction set and corresponding hardware and software

Moderator: agner

Post Reply
JoeDuarte
Posts: 41
Joined: 2017-12-19, 18:51:45

Forwardcom simulations

Post by JoeDuarte »

Hi Agner -- Have you run any simulations of ForwardCom? Is it possible to determine things like the benefits of not having a TLB with simulations? It's hard to get a sense of whether ForwardCom would be faster or more efficient than x86-64 or ARM64/v8.

Given its exclusion of microcode, does the compiler need to compete with Intel's OoO secrets? From Hubert's post, I got the impression that the OoO optimizations need to be carried either in the silicon or the compiler.

By the way, does 64-bit floating point require 80-bit intermediate values? Would 80-bit immediate constants fit into a 3-word instruction?
agner
Site Admin
Posts: 177
Joined: 2017-10-15, 8:07:27
Contact:

Re: Forwardcom simulations

Post by agner »

The tools that I have developed so far can emulate the ForwardCom processor but not simulate memory latencies.

The instruction set is designed for making OoO execution efficient. The compiler does not need to do this.

Only the old x87 instructions use 80-bit intermediaries. Most other instruction sets use 32 bit for single precision float and 64 bit for double. The fused multiply-and-add instructions need to calculate the intermediate product with extended precision in order to comply with the IEEE 754 floating point standard.
Kulasko
Posts: 31
Joined: 2017-11-14, 21:41:53
Location: Germany

Re: Forwardcom simulations

Post by Kulasko »

I am working on a simulator for these kinds of things right now. The project got pretty heavily delayed by multiple causes, but is still on track. Depending on how much work it is in the end, i want my simulator to not only simulate ForwardCom, but other architecture such as ARM as well. This way, it is really easy to design a CPU, just switch the underlying architecture, make a few adjustments and get a good picture of actual performance differences for the different ISAs. Of course, this only is the case if you have a similary optimized version of your test program for the different ISAs.
marioxcc
Posts: 6
Joined: 2018-05-25, 15:16:00

Re: Forwardcom simulations

Post by marioxcc »

JoeDuarte wrote: 2018-06-13, 1:54:58 By the way, does 64-bit floating point require 80-bit intermediate values? Would 80-bit immediate constants fit into a 3-word instruction?
Architecturally: No. If doing arithmetic in Float64, the programmer always sees a Float64. Internally (at the register transfer level) the floating point number may be stored in a different format (for example: using wider exponent so that subnormal Float64 values correspond to normal numbers in the internal representation). Internally for arithmetic operations, the implementation must compute a wider intermediate value that is then rounded to what the programmer sees, to guarantee correct rounding for the operations that require it in IEEE 754. This is completely transparent to the programmer in IEEE 754-compliant hardware.

Thus an architecture that offers floating point numbers with a 64 bit significant (like the 80 bit floats of x86) necessarily uses wider intermediates internally and the extra precision is discarded to get a correctly rounded result with the required precision. Note that the extra precision (beyond 80 bit floating point numbers) is used exclusively to get a correctly rounded result but otherwise is not available to the programmer and its existence is completely hidden at the architectural level.
Post Reply