Toolchain / 17 of 21
What a process is
Tile geometry, flip-flops per tile, and the memory macros with their names, port lists and measured areas.
Builds on Verilog emitter
The DSL crates are a faithful reimplementation of Hardcaml's model, and Hardcaml knows nothing about foundries. What *is* process knowledge — how big a tile is, how many flip-flops fit in one, whether the process has a hard SRAM and what it is called — changes with every shuttle and is not the DSL's business.
So it lives here, on its own, with the facts written down and dated. A design that targets IHP asks this crate what IHP has; a design that targets sky130 asks the same question and gets a different answer. The DSL does not change, and neither does the other process's data.
Step by step
- 01
Name the process
Three are known.
IhpCmos5lis the submission target;Sky130is kept because it is the most mature open PDK with the best-documented tooling, so it is the cheapest place to iterate on the DSL;Gf180mcuis the third live open node.130nmthe submission process's feature sizeCode sampleuse ferrite_lithic_pdk::Pdk; assert_eq!(Pdk::IhpCmos5l.open_pdk_name(), "ihp-sg13g2"); assert_eq!(Pdk::IhpCmos5l.feature_size_nm(), 130); assert_eq!(Pdk::IhpCmos5l.display_name(), "IHP 130nm CMOS5L"); - 02
Measure the tile, and the flip-flops in it
The tile is 200 × 150 µm — the figure the competition rules state, recorded as *that* rather than as a fact about the process, because only one of the two can be checked against something we can point at. The flip-flop count is what rules out flip-flop memory: 320 per tile over 24 tiles is 7 680 flip-flops, which is 960 bytes, and that is the *entire* design's register budget spent on nothing else.
Code sampleuse ferrite_lithic_pdk::Pdk; let ihp = Pdk::IhpCmos5l; assert!(ihp.tile_area_um2() > 25_000.0); assert_eq!(ihp.dff_per_tile(), 320); - 03
Look up the macro, and what it costs
The macro's name is the cell name in the LEF, its area is the
SIZEin the same LEF in micrometres, and its port list is the port list in the foundry's Verilog simulation model. Nothing here is paraphrased from a datasheet summary.Code sampleuse ferrite_lithic_pdk::Pdk; let ihp = Pdk::IhpCmos5l; let macro_form = ihp.sram(1024, 8).expect("IHP has a 1024x8 macro"); assert_eq!(macro_form.module, "RM_IHPSG13_1P_1024x8_c2_bm_bist"); assert_eq!(macro_form.bytes(), 1024); assert_eq!(macro_form.read_latency, 1); - 04
Count the tiles, not the area
A macro is placed on a tile grid, so what it costs is its bounding box, not its area. The 1024x8 macro is 147 µm wide and 336 µm tall, which on a 200 × 150 µm tile is one tile wide and three tiles tall — whatever its 49 419 µm² area says. This is the calculation that decides the program-memory budget.
40tilesthe 8192x32's bounding box, against an allocation of 24Code sampleuse ferrite_lithic_pdk::Pdk; let ihp = Pdk::IhpCmos5l; let macro_form = ihp.sram(1024, 8).unwrap(); // One tile wide, three tall. assert_eq!(ihp.tiles_for_sram(macro_form), 3.0); // And the biggest macro in the family does not fit at all. let biggest = ihp.sram(8192, 32).unwrap(); assert!(ihp.tiles_for_sram(biggest) > 24.0);
What bites
The area is not the cost that matters
A macro's area and its tile cost differ by a factor of two or three, because the grid is not the area. Reading a macro's area and dividing it by a tile's area gives the number a datasheet would quote, and it is wrong in the direction that matters: it says a 4096x8 macro costs 4.9 tiles when it costs ten.
The tile figure is a rule, not a measurement
200 × 150 µm is what the competition rules state. It is recorded as the competition's number and not as a fact about the process, because the two are not the same thing and only one of them can be checked against a source we can point at.
Sky130 and GF180MCU have no macro table here
The IHP table is measured; the other two are empty rather than filled with plausible numbers. A design that asks for a macro the process does not have should be told so, not handed an estimate that turns into a floorplan that does not close.
Notes
- measured
The macro areas come out of the PDK's LEF files
The 1024x8 is 146.88 × 336.46 µm, the 4096x8 is 236.8 × 618.3 µm, and the 8192x32 is 1520.16 × 618.3 µm. Those are
SIZErecords inihp-sg13g2/libs.ref/sg13g2_sram/lef/, not estimates. - decision
The read latency is one, and it is the macro's
Every macro in the table samples the read enable and the address at the clock edge and produces the data in the next cycle. That is why a memory's read latency is a property of the memory rather than of the backend.
- trap
The `c2`, `c3` and `c4` suffixes are not performance grades
They are the foundry's column counts. A
c3macro is not a fasterc2macro, and the suffix is part of the name and has to be copied exactly.