Run the CPU at 100 MHz

The FPU picks the FADD/FSUB operands and works out exponents and leading
zeros as it takes them, and finds the back end's leading one a clock
before using it; those were the paths that held the design to 91 MHz.
Add, multiply and the multiply-adds now take 13 clocks, divide and
square root 37, int -> float 9. Setup slack at 100 MHz is +0.286 ns.
On the board: an empty FOR loop 6.4 us (was 8.3), SIN 33 us (was 37).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-12-01 07:26:59 -08:00
1 parent bda9bb67b6
commit 2dafda5fe5
14 files changed
+78 -51

No files matched your search

+2 -2
View File
@@ -559,10 +559,10 @@ class RV32:
if op in (0x07, 0x27):
return 3
if op in (0x43, 0x47, 0x4B, 0x4F):
return 12
return 13
if op == 0x53:
f5 = ins >> 27
return {0: 12, 1: 12, 2: 12, 3: 36, 0x0B: 36, 0x18: 5, 0x1A: 8}.get(f5, 4)
return {0: 13, 1: 13, 2: 13, 3: 37, 0x0B: 37, 0x18: 5, 0x1A: 9}.get(f5, 4)
if op in (0x03, 0x23):
a = (self.x[ins >> 15 & 31] + sx(ins >> 20 if op == 3 else (ins >> 25) << 5 | (ins >> 7 & 31), 12)) & M32
return 4 if a >= 0xFFFFFE00 or MON_RAM <= a < MON_END else 3