Page 1 of 2

68881 VHDL implementation

Posted: 21 Sep 2026 11:06
by Kochise

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 11:15
by exxos
Interesting!

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 13:46
by alexh
It's very big in terms of FPGA utilisation so I don't think we'll see it alongside cores in MiSTer. I don't know if it's representative of the original silicon, I don't know how much RAM, registers, ALU elements there were in the original.

Very nice thing to have though

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 13:51
by Kochise
There's a "LITE" version (see "fpu_lite_g => true"), the same as the 040 subset that needs the software emulation package for the missing instructions.

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:15
by alexh
I'm not sure how useful the Lite version will be for non 040 implementations? At least for pre-compiled software?

IIUC 040 uses a different method of accessing the registers than 020 and 030? They use the co-processor bus and Line-F traps or something (this is not my area of expertise). There is a chance software compiled for those CPU/FPU combos are likely to expect the full instruction set? But who knows?

Nice thing to have definitely.

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:18
by Kochise
Obviously is "saves" ~57-60% LUT, hence make it possible to fit smaller FPGA.

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:25
by alexh

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:30
by Kochise
If everyone is copying each other, now waiting for 68030 in VHDL.

No, 68060...

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:32
by alexh
Kochise wrote: 21 Sep 2026 14:30 now waiting for 68030 in VHDL
Same guy as above has one in SystemVerilog.

https://github.com/harrowm/MH030

I don't see why you'd want VHDL. The world went (System) Verilog 15 years ago. And FPGA tools don't care. They mix and match modules/components in different languages no problem.

But if you needed to, you could use one of the tools available to convert to VHDL and use Formal Verification (Formality / YoSys) to prove it was identical.

Re: 68881 VHDL implementation

Posted: 21 Sep 2026 14:36
by Kochise
VHDL, Verilog, whatever, provided we can get a cycle exact Motorola CPU implementation that we can use to create new boards and accelerators...