TinySoC: Open RISC-V CPU
The goal of this project is to tapeout a RISC-V CPU system on chip (SoC) with custom designed analog IP. This is being built as an open educational resource for SoC design and also enable IP reuse for production designs.
Background
Most open CPU designs usually include only the digital blocks required for a CPU, and rely on factory provided / proprietary IP for analog blocks.
There are a few reasons why most open source work has only been done on digital IP:-
- Analog IP is highly process specific, so designs aren’t portable across different manufacturing processes.
- Some of it is usually provided by the fab since it is more complex and needs more testing.
- People prefer buying hardened (extensively tested) analog IP blocks over developing their own since it is complex and time consuming.
- Since the implementation of analog designs is highly linked to the manufacturing process you can’t have an open analog block for a proprietary manufacturing process whereas you partially could for digital.
Therefore, there haven’t been many great designs for open analog blocks for SoCs and most open exploration ends up being done for microarchitecture / digital design.
We now have everything needed to create a completely open chip:-
TinySoC is an attempt to create a CPU SoC with an emphasis on analog infra* required for an SoC. This will likely be taped out using Global Foundries’ 180nm PDK since cheap / convenient Multi Project Wafer (MPW) options are available. Since this PDK doesn’t have a lot of analog designs built on it we have a chance to build something new.
Goals & Timeline
- Design, test and manufacture required analog IP on individual tiles on TinyTapeout. (Q2/Q3 2027)
- Develop / reuse a pre-made digital design for a minimal working subset of the RISC-V ISA and integrate this with created analog IP.
- Tapeout and verify the SoC including all digital and analog components! (Q4 2027)
Draft of minimal required analog & digital components + specs
Analog
-
Power Delivery and Regulation
- Low-Dropout Regulator (LDO) Generate clean, stable on-chip supply voltage via higher external supply.
- Bandgap Reference Provide stable reference voltage independent of manufacturing, input voltage and temperature variation Experimental design taped out on gf180mcuD
- Power-Management Control and Sequencing Ensure different power domains turn on/off in the correct order.
- On-Chip Supply Decoupling Reduce supply noise and provide short bursts of local current to switching circuits.
- DC–DC Converter Convert external supply into one or more internal supply voltages.
-
Reset and Supply Monitoring
- Power-On Reset (PoR) Circuit Hold SoC in reset until the power supply stable enough for reliable operation.
- Brown-Out Detector and Reset Reset SoC if supply voltage falls below safe operating level.
- Supply-Voltage Monitor Measure & flag if internal/external supply rails within acceptable limits.
- Reset Synchronization and Distribution Safely distribute reset signals across clock domains + throughout chip.
-
Clock Generation and Distribution
- On-Chip Oscillator Generate internal clock source signal.
- PLLs / DLLs Multiply, divide, align, or phase-shift clock(s) for higher-speed operation and interface timing.
- Clock Gating / Clock-Domain Support Reduce dynamic power and safely manage logic operating at different clock frequencies.
- External Clock Input Cell Accept and condition a clock signal supplied from outside the chip.
-
Pad Ring and External I/O
- ESD Protection Circuits Protect internal circuitry from electrostatic-discharge events at the package pins.
- Latch-Up Prevention Structures Prevent parasitic semiconductor structures from creating destructive high-current paths.
- Pad Ring, Power Pads, and Ground Pads Physical interface between internal chip circuitry & package.
- Digital and Analog I/O Cells / Pads Buffer, protect, and connect internal digital / analog signals to external pins.
-
On-Chip Monitoring and Test
- Process, Voltage, and Temperature Monitors Track manufacturing variation & operating conditions affecting circuit speed / reliability.
- Ring Oscillators and Process-Characterization Structures Measure process speed, device behavior, and variation across fabricated chips.
- Analog Test Multiplexers Route selected internal analog signals to test pads or measurement circuitry for characterization.
-
Memory Infrastructure Possibly use PDK provided IP
- Sense Amplifiers Detect & amplify small voltage differences produced when reading SRAM cells.
- Memory Power Integrity Ensure memory arrays receive stable power during simultaneous read / write activity.
- Write Drivers Force required voltages onto SRAM bitlines when storing data.
-
Communication Interfaces
- UART / SPI Serial Debug Interfaces
- GPIOs Configurable general purpose digital pins
- High-Speed LVDS / SerDes PHY High-speed communication (optional since this may take more time)
-
Data Conversion
- Analog-to-Digital / Digital-to-Analog Converters
- Comparator Determine if one analog voltage greater than another or crosses a defined threshold.
- Analog Multiplexer Select one of several analog signals for measurement or processing.
- Sensor-Interface Front End Preprocess sensor signals before using.
Digital
- Pipelined processor with arithmetic + floating point unit.
- Support for RISC-V Vector and Atomic extensions.
- Virtual memory support via a memory controller and SRAM based cache(s) + a small BootROM and possibly Direct Memory Access to bypass memory controller.
- Interrupt / privilege system + hazard control.
- Probably in order execution (can attempt out of order if time allows)
Funding and Miscellaneous
Will require funds for tapeout and some hardware to test fabbed chips as well as funds to tapeout the final SoC on a half / full wafer.space slot.
Approximate Estimates
- $3000 Individual block tapeout cost with TinyTapeout tiles
- $500 - $1000 (Lab equipment to test / characterize: Scope, Logic Analyzer, etc.)
- $7000 + $1500 Full slot on wafer.space + Chip On Board Packaging
These costs will partially be funded by myself and possibly some grants. Some costs could also be offset by pre-selling final dev boards. All contributors will of course receive dev boards of the final product for no cost.
There is also an ongoing 2 year challenge called Chipalooza with similar goals very kindly sponsoring good designs which can partially offset costs.