The Web Site to Remember National Semiconductor's Series 32000 Family

Floating-Point Units (FPUs)

Device Date First Document
NS16081October 1982Product Preview
NS323101986Only Hints
NS32381-20October 1987Preliminary Datasheet
NS32580-30April 1988Preliminary Datasheet
NS32181April 1991Preliminary Datasheet

Very early FPU Instruction Sets

In August 2017 I got two very early documents from Michael describing the floating-point instruction set. The first one shows the set as of 30 June 1980 and the second one as of 18 August 1980. Both sets are significant different to the set implemented in the NS16081 FPU.

Remarkable is the abandonment of the instructions SAVEFREG / SVFREG and RESTOREFREG / RSFREG. Doing a save or restore of the complete FP register set with the MOVf instruction is slow because of the slave processor protocol overhead. Maybe the available microcode ROM was to small to implement these instructions.

Some instructions for matrix and polynomial calculations also get lost (DOTx,POLYx). The engineers of National Semiconductor defined a nice variation of them (DOTFL,POLYFL) with two single precision operands as input and a double precision register for the sum. Later the simple forms were included in the NS32381 FPU instruction set.

Two instructions for transforming FP operands were never implemented. INTy / INTf and MOVFRACy / FRACf seemed not to be useful enough for the required transistors.

Fig. 1. The FPU instruction set (and the MMU instructions) as of 30 June 1980.

The list in Figure 1 contains some MMU instructions. LMR, SMR, MOVSUx and MOVUSx can only be executed if a system used the NS16082 MMU.

One new instruction appeared in the list of 18 August 1980. The MAGf instruction is very useful and easy to implement. Later it was renamed to ABSf. Obviously the names of some FP instructions changed over time. The list in Figure 2 shows the final names.

Fig. 2. The FPU instruction set as of 18 August 1980. The names are now final with the exception of MAGf which became ABSf.

NS16081/NS32081

Fig. 3. The NS32081 FPU specified for 6 MHz (left) and 15 MHz (right) operation.

The NS16081 FPU was the first generation floating-point unit of the Series 32000 family. It was called NS16081 when it appeared on the market but was later renamed to NS32081 like the other chips of the family. It offered the four basic arithmetic operations ADD, SUB, MUL and DIV, supports conversions between integer and floating-point operands and had eight 32 bits wide working registers. The basic operations required fom 48 up to 119 clock cycles. Floating-point operand sizes were 32-bit single precision and 64-bit double precision. Rounding modes were compatible to IEEE-754 standard.

The chip was first build into a 24-pin DIL ceramic package. It had a 16-bit databus and used a very simple transfer protocol for opcodes and operands. The transfer rate between CPU and FPU was always 2 clock cycles. A 64 bit double precision operand needed four transfer cycles respectivly 8 clock cycles. Interestingly some people used this chip as a coprocessor for the Motorola MC68000. The reason were the simple interface and Motorola had no FPU chip for their 16/32-bit processors. The chip was build in NMOS technology and achieved up to 15 MHz clock frequency. Later the chip was offered in a plastic package.

Please note that in Figure 3 the lid size of the 15 MHz version is smaller compared to the older 6 MHz chip. This is an indication for a smaller and therefore faster chip.

20 years later, in 2004, Intel introduced in the Pentium 4E the instruction FISTTP which does the same like the instruction TRUNCfi in the NS32081! It is never to late to learn from the best :-)

Fig. 4. The NS32081 FPU in a plastic package.

The marking of the FPU device in Figure 4 is done with a laser. Please note the unusual date code: week 25 of year 2009! It is not a fake - the chip is functional in an Acorn 32016 Second Processor. Design step information is normally given, but here it is missing.

NS32310

At the end of 1985 National Semiconductor announced a cooperation with Weitek Corp. which was at that time the market leader for high performance floating-point chips. The goal was to develop an interface chip, named NS32310 FPC, to link the Series 32000 family to Weitek's 64-bit floating-point chip set WTL1164/WTL1165. The combination of the three chips would have been more than 10 times faster compared to an NS32081 FPU. The chip was called FPC which means Floating-Point Controller to show that it is not a Floating-Point Unit which includes the data path.

But in the 1986 edition of the Series 32000 databook only in the appendix of the NS32332 CPU a schematic containing the chip set could be found. No advanced datasheet was published although the schematic was detailed. At the end the NS32310 exists only on paper.

NS32381

Fig. 5. Frontside and backside of the NS32381 FPU specified for 25 MHz operation.

The NS32381 FPU was the second generation floating-point unit of the Series 32000 family. It could be used with any Series 32000 CPU including the low-end NS32008. The design was making some extensions to the original definition of the Series 32000 architecture. The main change was the increase from four to eight 64 bits wide working registers. The original architecture was stingy with registers due to technology limitations. This chip did the same operations like the NS32081 plus instructions for DOT (A*B + F0) and POLY (A*F0 + B) operations. They perform two floating-point operations (MUL and ADD) in one opcode. Register F0 was fixed for the resulting sum. In addition two new instructions could be used for scaling operands (SCALB and LOGB).

The chip was available in a PGA and a PLCC package each with 68 pins. It was manufactured in CMOS technology. The external data bus width was 32 bits. The internal microarchitecture seems to be similar to the NS32081. More performance comes mostly from the higher clock frequency of up to 30 MHz, not from aggressivly less clock cycles per operation. The chip required for the basic arithmetic operations from 20 up to 59 clock cycles . In addition the 32-bit interface speeded up transfers of opcodes, operands and results between the FPU and the CPU. One transfer took two clock cycles like the NS32081.

Fig. 6. A 30 MHz NS32381 from 1993 in a PLCC package. I don't know a system using this version of the device.

NS32580

After the failure of the NS32310 FPC National Semiconductor tried again to develop an interface chip for a Weitek floating-point unit. This time the NS32580 FPC was designed as a coprocessor for the NS32532 CPU. On the other side the FPC was connected to the single chip Weitek WTL3164 Floating-Point Data Path (FPDP) which was doing the real work. The Weitek chip provided the basic arithmetic operations and added the square-root (SQRT) and a multiply-add (MAC) operation as new instructions to the Series 32000 architecture.

This time the cooperation was successful and a detailed preliminary data sheet appeared. The operation of the chip set was specified for up to 30 MHz clock frequency. The data sheet promised up to 15 Mflops peak performance for single and double precision multiplies and additions. The package of the NS32580 was a 172-pin PGA. The technology for this chip was 1 µm CMOS which is more advanced then the technology of the NS32532 CPU.

I looked for a photo of this device for a long time. It was easier to get one for the very rare NS32SF640 CPU. In Summer 2016 I wrote an email to the designer of the chip. He was very kind and said that he must have some devices. In November he wrote that he could not find the chips - not the best message if you are full of hope. But some days later I got a new mail from him - this time containing some photos! What a surprise - he has not given up the search and finally was successful. Shay, thanks a lot for your efforts!

Fig. 7. Top and bottom view of an enginering version of the NS32580. The red arrow is pointing to the very weak pin A1 marking.

NS32181

Fig. 8. The NS32181 FPU in a socket of an Indel AG board.

The NS32181 FPU is a 16-bit bus version of the NS32381 FPU. The chip was packaged in a low-cost 68-pin PLCC and the maximum operating frequency was 25 MHz. Both FPUs have the same pinout and the same features. Therefore my assumption is that only one chip was used.

Can a NS32181 function as a NS32381? An interesting question...

This chapter was last modified on 20 August 2017. Next chapter: MMUs