/vibe-soc:gen-memwrapfrom Vibe SoC
Generates unified memory wrapper RTL from Excel configs and produces .lib/.lef for sky130/nangate45 PDKs using OpenRAM or FakeRAM. Useful for building SRAM/TPRAM/FIFO wrappers in open-source ASIC flows.
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /vibe-soc:gen-memwrap still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Excel 存储器表 → 统一 SoC 端口 wrap + 开源宏 .lib/.lef(catalog 匹配或在线生成)。
| 后端 | 来源 | 交付 |
|---|---|---|
sky130 | ORFS sky130ram OpenRAM 预置宏 / 在线 OpenRAM | .v .lib .lef(+gds 在源树) |
nangate45 | ORFS FakeRAM / bsg_fakeram / builtin | .lib .lef + 行为 .v |
gen_memwrap(excel_file, sheet_name, output_dir, platform="auto", relaxed=false, generate=true)
gen_memwrap_status()
python3 .agents/skills/gen-memwrap/scripts/gen_memwrap.py \
<mem.xlsx> <sheet_name> <output_dir> [sky130|nangate45|auto] \
[--generate|--no-generate] [--relaxed]
python3 .agents/skills/gen-memwrap/scripts/gen_memwrap.py --status
环境变量:
| 变量 | 用途 |
|---|---|
ORFS_PLATFORMS | catalog 预置宏根(ORFS flow/platforms) |
SILICON_CREW_ORFS_DIR / OPENROAD_FLOW_HOME | 若未设 ORFS_PLATFORMS,回退 $VAR/platforms |
OPENRAM_HOME | OpenRAM compiler 目录 |
OPENRAM_TECH | OpenRAM technology 目录 |
OPENRAM_COMPILER | sram_compiler.py 入口 |
OPENRAM_PYTHON | 推荐 conda-env 中的 python |
PDK_ROOT | sky130A / skywater-pdk 根 |
BSG_FAKERAM / FAKERAM_HOME | nangate45 在线 bsg_fakeram(可选) |
一键加载(本机已装):
# bash
source "$OPENRAM_ROOT/env.sh" # set OPENRAM_ROOT to your OpenRAM install
# 或
source scripts/openram_env.sh
# csh
source "$OPENRAM_ROOT/env.csh"
generate=true(默认)时,catalog 精确 depth×width 未命中会:
| platform | 顺序 |
|---|---|
sky130 | 调 OpenRAM 写 config → 出 .v/.lib/.lef 到 output_dir/generated/sky130/... |
nangate45 | 优先 bsg_fakeram;失败或未安装 → builtin FakeRAM(黑盒 .lib/.lef + 行为 .v) |
预置 catalog 命中时不调用 generator。--no-generate 则仅 catalog(可加 --relaxed 就近)。
| 列 | 必填 | 说明 |
|---|---|---|
TYPE | 是 | spram / tpram / tpram(asynchronous) / sfifo / asfifo / rom |
NumberOfWords | 是 | depth |
BitsInWord | 是 | width |
PLATFORM | 否 | sky130 | nangate45(缺省用 CLI platform / sky130) |
PORTS | 否 | 1rw / 1rw1r |
BitWordWrite | 否 | ON/OFF(默认 ON) |
WriteSize | 否 | mask 粒度(sky130 默认 8) |
Name | 否 | wrap 逻辑名 |
ExactMacro | 否 | 强制 catalog 宏名 |
sheet_name 为子串匹配(sheet 名包含即处理)。
<output_dir>/
rtl/ # *_wrap.v + 复制/生成的底层 .v
lib/ # 复制的 .lib
lef/ # 复制的 .lef
beh/ # FakeRAM 行为模型(如有)
generated/ # 在线生成的宏
report/ # selection.csv / selection.json
filelist.f
SPRAM:clk, me, we, addr, din, [wem,] dout
TPRAM:clk|clka/clkb, ena, wea, addra, dina, [wem,] douta, enb, addrb, doutb
SFIFO / ASFIFO:自带指针逻辑,内部例化 spram/tpram wrap
references/catalog_sky130.json
references/catalog_nangate45.json
Demo:references/memwrap_demo.xlsx
catalog 命中:直接 copy 预置宏
catalog 未命中 + generate:OpenRAM / bsg_fakeram / builtin
nangate45 无双口宏:tpram/asfifo 仍走行为模型
pandas(+ Excel 引擎 openpyxl)仅支持下列工艺后端:
| platform | 含义 |
|---|---|
sky130 | SkyWater 130nm + OpenRAM |
nangate45 | FreePDK45 + FakeRAM / builtin 黑盒 |
交付物为统一 wrap RTL + .lib / .lef(及行为 .v)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub siliconpeasant/vibe_soc --plugin vibe-socRead when SKILL.md points to them; scripts run unread.
13 skills in this plugin
/crg-design-genCRG frontend design flow: requirement table → clock/reset design tables + PLL report, and/or reviewed design tables → Draw.io/Excalidraw topology diagrams. Merges former crg-req-to-design and cr-tree-diag-gen.
/dft-genCheck DFT frontend readiness (test_mode/scan/test_rst hooks), generate DFT collateral under de/dft/, and package inputs for soc_dft (VC SpyGlass TestMAX). Exclusive skill of soc-dft-engineer.
/excel-yml-genGenerate YAML and Verilog register-file artifacts from a structured Excel register workbook. Use when the approved register source is an Excel sheet.Other plugins' skills for the same job