This is the starting point for a chip on the ChipFoundry Double-Wide OpenFrame: a sky130 padframe with no management SoC, a 32 mm² user area and 63 GPIOs that are all yours. You put your design inside one module, double_wide_openframe_project_wrapper, harden it, and ChipFoundry swaps it into the padframe.
The template is complete and already hardened, so every step of the flow works right after cloning.
Important
The design in this repository is a 12-bit counter. It is only an example of how to use the wrapper: how to hook a macro to the GPIOs, the frame resets and the power grid. Replace it with your own design. The two power connection macros (dw_vccd1_connection, dw_vssd1_connection) are not part of the example: they stay in every wrapper. See Power.
- The Double-Wide OpenFrame at a glance
- Quick start
- What the template contains
- Replacing the counter with your design
- Power: the vccd1 and vssd1 connection macros
- Rules the wrapper must follow
- Documentation
- Checklist for shuttle submission
| Double-Wide OpenFrame | OpenFrame | |
|---|---|---|
| Die | 7176 × 5188 µm | 3588 × 5188 µm |
| User area | 6754.63 × 4766.63 µm (~32 mm²) | ~15 mm² |
| GPIOs | 63 (gpio[62:0]) |
44 |
| Management SoC | none | none |
| Wrapper module | double_wide_openframe_project_wrapper |
openframe_project_wrapper |
| Process | SkyWater sky130A | SkyWater sky130A |
It is the OpenFrame made twice as wide. The west and east pad columns are the OpenFrame's own; the north and south rows are the OpenFrame's rows placed twice, side by side. Each pad has the same interface as on the OpenFrame, and the frame also gives your design a power-on reset, a master reset pad and a constant one and zero next to every pad.
Full details: docs/double_wide.md.
This takes the shipped example through the whole flow. Nothing needs editing.
You need: Git, Python 3.8+ with pip, Docker (simulation and precheck) and Nix (hardening). For this project type cf harden runs only through Nix; --use-docker is refused.
1. Create your repository from this template on GitHub ("Use this template"), then clone it and install the ChipFoundry CLI:
git clone <your-github-repo-URL>cd <your-repo>pip install chipfoundry-cli2. Initialize the project. Accept double_wide when asked for the project type (it is detected from the wrapper GDS):
cf initThis writes .cf/project.json, which every other command reads. If you are logged in (cf login), it also offers to link the repository to a project on the ChipFoundry platform.
3. Install the tools and the frame:
cf setupThis puts the Double-Wide OpenFrame harness in caravel/, the sky130 PDK in dependencies/pdks/, and installs the cocotb simulation environment and cf-precheck.
4. Simulate the example at chip level, through the real pad models:
cf verify counter5. Harden the example macro, then the wrapper that contains it:
cf harden user_proj_countercf harden double_wide_openframe_project_wrapperThe hardened views are already committed, so you can skip this step the first time through and come back to it once you have changed something.
6. Run the gate-level simulation and the precheck:
cf verify counter --sim glcf precheckIf all of that passes, your environment is sound and you can start on your own design.
| Path | What it is | Yours to change? |
|---|---|---|
verilog/rtl/double_wide_openframe_project_wrapper.v |
The wrapper: instantiates the example macro and configures all 63 pads | Body yes. Module name and port list no |
verilog/rtl/user_proj_counter.v |
The example macro, a 12-bit counter | Yes, replace it |
verilog/rtl/CF_gpio_config.v |
Helper that sets one pad's mode (input, output, pull-up, analog...) | Use as is |
openlane/user_proj_counter/ |
LibreLane configuration of the example macro | Yes, replace it |
openlane/double_wide_openframe_project_wrapper/config.json |
LibreLane configuration of the wrapper | Partly, see Rules |
openlane/double_wide_openframe_project_wrapper/pin_template.def |
Position of every wrapper pin, taken from the frame | No |
openlane/double_wide_openframe_project_wrapper/fixed_dont_change/ |
The two power connection macros and the script that places them | No |
verilog/dv/cocotb/ |
cocotb tests run by cf verify |
Yes |
verilog/includes/ |
File lists cf verify compiles for RTL and gate-level simulation |
Yes |
lvs/double_wide_openframe_project_wrapper/lvs_config.json |
LVS configuration for cf precheck |
Yes, list your macros |
gds/, lef/, def/, mag/, lib/, spef/, verilog/gl/, signoff/ |
Hardened views written by cf harden |
Regenerated |
flake.nix |
Pins the LibreLane release cf harden uses (2.4.6) |
No |
The example counter:
| GPIO | Use | Pad mode |
|---|---|---|
| 48 | clock | input |
| 47 | active-low reset | input with pull-up |
| 46 down to 35 | count[0] up to count[11] |
output |
| all others | unused | analog (high impedance) |
Walk-through of how it is built: docs/example_counter.md.
- Write your RTL in
verilog/rtl/and give each block its ownopenlane/<macro>/config.json. Start fromopenlane/user_proj_counter/. - Harden each macro with
cf harden <macro>. - In the wrapper RTL, instantiate your macros instead of
user_proj_counterand give every pad aCF_gpio_config, including the pads you do not use. - In the wrapper
config.json, replace theuser_proj_counterentry underMACROSand itsFP_PDN_MACRO_HOOKSentry with your own. Leave the twodw_*_connectionentries in place. - Update the wrapper SDC, the file lists in
verilog/includes/, the LVS configuration and the cocotb tests. - Harden the wrapper, then run
cf verify --all,cf verify --all --sim glandcf precheck.
Step-by-step, with the exact fields to edit: docs/your_design.md.
Digital logic runs on vccd1 / vssd1. Inside the wrapper those two nets are a core ring plus a grid. The frame, however, delivers them only as short metal-3 ports on the east edge of the user area, one pad each. Something has to join the pad ports to the ring, and that is the job of the two macros in fixed_dont_change/:
| Macro | Joins | Placed at (µm) |
|---|---|---|
dw_vccd1_connection |
the vccd1 pad ports to the inner ring |
(6710.515, 4327.510) |
dw_vssd1_connection |
the vssd1 pad ports to the outer ring |
(6710.515, 2088.510) |
What you need to know:
- They are not part of the counter example. When you replace the counter, they stay. A wrapper without them has a power grid that is not connected to any pad.
- You do not instantiate or place them.
fixed_dont_change/pdn_cfg.tclplaces them while the power grid is built. The hardening log printsPlaced 2 power connection macros. - Keep what they depend on: their two
MACROSentries,FP_PDN_CFG,FP_PDN_CORE_RING_*,FP_DEF_TEMPLATE,DIE_AREAandCORE_AREAin the wrapperconfig.json. - They fit this ring only. If you change the core ring, drop the shipped PDN script or build the wrapper with another flow (a hand-drawn or analog top level, for example), these macros no longer land on your power grid and you have to replace them with your own connection. docs/power.md explains how and what to check.
- The other supplies (
vccd2/vssd2,vdda,vdda1,vdda2,vddio,vccdand their grounds) have no connection macro. They are pins on the wrapper edge; if you use one, you route to it yourself.
- The top module is named
double_wide_openframe_project_wrapperand has exactly the ports ofcaravel/verilog/rtl/__double_wide_openframe_project_wrapper.v. - The footprint is 6754.63 × 4766.63 µm and every pin is where
pin_template.defputs it.cf precheckcompares the wrapper boundary with the frame's empty wrapper. - Every pad's controls are driven, for all 63 GPIOs. There is no management SoC and no
user_defines.vto do it for you, andcf gpio-configdoes not apply to this project type. pin_template.defandfixed_dont_change/are not edited.- In the wrapper
config.json, the grid pitch, width and offset (FP_PDN_VPITCH,FP_PDN_VWIDTH,FP_PDN_VOFFSETand theHequivalents), yourMACROSentries andFP_PDN_MACRO_HOOKSare yours. The settings listed under Power are not.
| Page | Read it for |
|---|---|
| docs/double_wide.md | The frame: geometry, GPIO numbering, power domains, resets, the wrapper's ports |
| docs/example_counter.md | How the counter example uses the wrapper |
| docs/your_design.md | Replacing the example with your own design, file by file |
| docs/power.md | The core ring, the connection macros and when they must be replaced |
| docs/flow.md | cf harden, cf verify, cf precheck, compressed views, timing constraints, troubleshooting |
From the frame's own repository, double_wide_openframe:
- Datasheet: pad behaviour at power-up, power sequencing, integration.
- Pinout: bond-pad coordinates of every GPIO and power pad.
- The example counter is replaced by your design, and this README describes it.
- The top-level module is
double_wide_openframe_project_wrapperwith the unchanged port list. -
pin_template.def,fixed_dont_change/,DIE_AREAandCORE_AREAare as shipped. - The hardening log of the wrapper says
Placed 2 power connection macros., or you have replaced them as described in docs/power.md. - Every one of the 63 GPIOs is configured, including unused pads.
- All macros and the wrapper are hardened and their views are committed (large views gzipped, see docs/flow.md).
-
cf verify --allandcf verify --all --sim glpass. -
cf precheckpasses.
