Live data from Hacker News

Conditions in the Intel 8087 floating-point chip's microcode

righto.com

1–10 of 47 posts

Re: Conditions in the Intel 8087 floating-point chip's microcode

#6
post #4

super cool! i wonder how difficult it would be to recreate the entire chip at logic gate level in, say, VHDL or Verilog

It would be difficult, but not impossible. The main problem is tracing out all the circuitry, which is very time-consuming and error-prone. Trust me on this :-)

The second problem is that converting the circuitry to Verilog is straightforward, but converting it to usable Verilog is considerably more difficult. If you model the circuit at the transistor level in Verilog, you won't be able to do much with the model. You want a higher-level model, which requires converting the transistors into gates, registers, and so forth. Most of this is easy, but some conversions require a lot of thought.

The next issue is that you would probably want to use the Verilog in an FPGA. A lot of the 8087's circuitry isn't a good match for an FPGA. The 8087 uses a lot of dynamic logic and pass transistors. Things happen on both clock edges, so it will take some work to map it onto edge-trigger flip-flops. Moreover, a key part of the 8087 is the 64-bit shifter, built from bidirectional pass transistors, which would need to be redesigned, probably with a bunch of logic gates.

The result is that you'd end up more-or-less reimplementing the 8087 rather than simply translating it to Verilog.

Re: Conditions in the Intel 8087 floating-point chip's microcode

#7
post #5
post #2

Author here if anyone has questions...

Is there 8087 IP available in verilog etc?

As far as I know, you can't get the 8087 itself as an IP block. You can get generic IEEE-754 floating-point as an IP block, e.g. from AMD: https://www.amd.com/en/products/adaptive-socs-and-fpgas/inte...

Re: Conditions in the Intel 8087 floating-point chip's microcode

#8
post #6
post #4

super cool! i wonder how difficult it would be to recreate the entire chip at logic gate level in, say, VHDL or Verilog

It would be difficult, but not impossible. The main problem is tracing out all the circuitry, which is very time-consuming and error-prone. Trust me on this :-) The second problem is that converting the circuitry to Verilog is straightforward, but converting it to usable Verilog is considerably more difficult. If you model the circuit at the transistor level in Verilog, you won't be able to do much with the model. Yo…

ah, i see, thanks for the insight! do you have any advice on how one might get started with IC reverse-engineering? i think it would be interesting to reimplement these chips in a way that's at least inspired by the original design

Re: Conditions in the Intel 8087 floating-point chip's microcode

#9
post #8
post #6

Earlier quoted context omitted.

It would be difficult, but not impossible. The main problem is tracing out all the circuitry, which is very time-consuming and error-prone. Trust me on this :-) The second problem is that converting the circuitry to Verilog is straightforward, but converting it to usable Verilog is considerably more difficult. If you model the circuit at the transistor level in Verilog, you won't be able to do much with the model. Yo…

ah, i see, thanks for the insight! do you have any advice on how one might get started with IC reverse-engineering? i think it would be interesting to reimplement these chips in a way that's at least inspired by the original design

How to get started reverse engineering? That's a big topic for a HN comment, but in brief... Either get a metallurgical microscope and start opening up chips, or look at chip photos from a site like Zeptobars. Then start tracing out simple chips and see how transistors are constructed, and then learn how larger circuits are built up. This works well for chips from the 1970s, but due to Moore's Law, it gets exponentially more difficult for newer chips.

I also have a video from Hackaday Supercon on reverse engineering chips: https://www.youtube.com/watch?v=TKi1xX7KKOI

Re: Conditions in the Intel 8087 floating-point chip's microcode

#10
post #7
post #5

Earlier quoted context omitted.

Is there 8087 IP available in verilog etc?

As far as I know, you can't get the 8087 itself as an IP block. You can get generic IEEE-754 floating-point as an IP block, e.g. from AMD: https://www.amd.com/en/products/adaptive-socs-and-fpgas/inte...

IPv6 has seriously gone too far.
Post reply on HN