ember-design · diagram galleryember-design · 图示案例库

Warm diagrams. One gold. 温暖的图,一处金。

Eight hand-built SVG figures in the ember-design language. Warm cream and chocolate carry the structure; a single gold carries the story. Every figure answers one question first — where does the gold go — then everything else stays out of the way. Copy any of them. 八张手工 SVG 图。暖奶油与巧克力承担结构,唯一的金色承担叙事。每张图先回答一个问题——金给谁——其余一切退后。每张都可直接复制。

Structure & flow 结构与流程

Architecture, flows, pipelines. Depth comes from warm-beige groups and soft brown shadows; the gold path is the one you are meant to follow. 架构、流程、流水线。层次靠暖米色分组和棕色柔影;金色路径就是你该跟随的那条。

PRESENTATION APPLICATION DOMAIN INFRASTRUCTURE user-facing surfaces coordination & policy business logic runtime substrate 1 2 3 Web Mobile CLI API Router Gateway Guard Billing Catalog Identity Reporting Database Storage Network Queue Orchestrator browser client iOS · Android terminal tools REST · SDK match & dispatch plan · collect · merge tool calls · rate limits allow · deny · confirm invoices · ledger products · pricing accounts · roles rollups · exports Postgres cluster objects · backups LB · CDN · DNS async jobs
Architecture · layers架构 · 分层 Four warm-beige layer groups; the gold belongs to the numbered request path and the Orchestrator focus card — every other card stays white. Template: templates/diagrams/architecture.svg. 四层暖米色分组;金色只给编号请求路径和 Orchestrator 焦点卡——其余卡片全留白。模板:templates/diagrams/architecture.svg
INGEST PIPELINE · HAPPY PATH retry ≤ 3 · then dead-letter pass fail · retry Valid? Fetch input Verify Process Publish from queue schema · auth transform · enrich notify consumers 1 2 3 4
Flow · decision流程 · 决策 The gold is spent on the happy path through four numbered steps; the Valid? diamond is the only tinted block, and the fail-retry loop steps back in dashed warm gray. Template: templates/diagrams/flow.svg. 金色花在串起四个编号步骤的主路径上;Valid? 菱形是唯一的 tint 块,失败重试回流用暖灰虚线退后。模板:templates/diagrams/flow.svg
ERROR LANE 1 2 3 4 mydev_probe(pdev) devm_kzalloc(ctx) ioremap registers request_irq(irq, handler) register chardev sizeof(*ctx) · GFP_KERNEL MMIO window · res->start IRQF_SHARED · dev_id = ctx misc_register(&ctx->mdev) ctx == NULL? base == NULL? ret < 0? yes yes yes no no no ret = -ENOMEM ret = -ENOMEM iounmap(base) ctx alloc failed mmio map failed unwind mmio mapping return 0 return ret platform_driver · drivers/misc/mydev.c happy path error path · dashed tint = entry / decision / exit
Function flowchart · error lane函数流程图 · 错误车道 A driver probe() top to bottom in gold; error handling steps aside into a dashed warm-gray lane and shares one return ret exit. Template: templates/diagrams/function-flowchart.svg. 驱动 probe() 从上到下走金色;错误处理让进暖灰虚线车道,共享一个 return ret 出口。模板:templates/diagrams/function-flowchart.svg
LINUX KERNEL · BUILD PIPELINE make ARCH=arm64 Image.gz dtbs make dtbs · runs in parallel .config gcc -c *.o ld vmlinux objcopy Image.gz *.dts dtc *.dtb mkimage FIT boot.itb Kconfig configuration compile per-TU object files ELF + symbols strip to binary gzip-compressed board source devicetree compiler flattened blob kernel + dtb pack bootable image 1 2 3 4 main path · numbered tool steps devicetree branch file corner = artifact
Build · pipeline编译 · 流程链 Kernel build from Kconfig to boot.itb; the gold goes to the main chain and the final deliverable’s focus card, while the devicetree branch joins quietly in warm gray. Template: templates/diagrams/build-pipeline.svg. 内核编译从 Kconfig 到 boot.itb;金色给主链和最终交付物的焦点卡,设备树分支用暖灰安静汇入。模板:templates/diagrams/build-pipeline.svg

Hardware 硬件

Blocks, registers, waveforms. Lattices and grids keep their hairlines — they are tables of fact, not cards — and the gold still goes to exactly one owner per figure. 框图、寄存器、波形。格栅和网格保留细线——它们是事实的表格,不是卡片——每张图的金色仍然只给一个主人。

QUARTZ-3550 SOC · BLOCK DIAGRAM arm64 · 12 nm LP · 0.8 V core rail CPU SUBSYSTEM DynamIQ cluster · 1.8 GHz CLOCK & RESET 24 MHz xtal MEMORY AXI slaves HIGH-SPEED PERIPH DMA masters LOW-SPEED PERIPH via APB clk · rst Cortex-A55 ×2 L2 512K GIC-600 PLL ×3 CRU AXI NoC · 64-bit @ 800 MHz APB bridge DDR4 ctrl + PHY SRAM 256K Boot ROM PCIe Gen3 x2 USB 3.0 GbE MAC UART ×4 I2C ×3 SPI ×2 GPIO L1 32K I/D per core unified · ECC interrupt distributor core · ddr · peri gate · reset system interconnect · QoS arbitration · 4 masters AXI-to-APB · 100 MHz DDR4-3200 · 32-bit + ECC on-chip scratch 64K mask root complex · MSI-X xHCI DRD RGMII · TSO 16550A 400 kHz FM mode 0-3 4 banks ×32 1 2 main data path · CPU → NoC → DDR4 clk · rst fan-out secondary bus link zones group IP by bus tier
SoC · block diagramSoC · 框图 CPU cluster, NoC interconnect, peripheral fan-out; the gold traces the main data path — CPU into the NoC and down to DDR4 — everything else stays chocolate and gray. Template: templates/diagrams/soc-block.svg. CPU 簇、NoC 互连、外设扇出;金色描出主数据通路——CPU 进 NoC 再落到 DDR4——其余一切留在巧克力与灰。模板:templates/diagrams/soc-block.svg
UART_CTRL offset 0x04 · reset 0x0000_0301 RESERVED READ AS 0 · WRITE AS 0 31302928 27262524 23222120 19181716 BAUD_DIV 15141312 111098 7654 3210 PARITY STOP DATA8 FIFO_TH TX_EN RX_EN BAUD_DIV RW bits 23:16 · baud = PCLK / (16 · div) PARITY RW bits 11:10 · 00 none · 01 even · 10 odd DATA8 RW bit 8 · 1 = 8 data bits · 0 = 7 data bits RX_EN RW bit 0 · receiver enable · 1 at reset · focus
Register · bit fields寄存器 · 位域 UART_CTRL at offset 0x04 as a hairline lattice; the gold is spent on one field — RX_EN at bit 0 — the rest of the row reads as a quiet table. Template: templates/diagrams/register-bitfield.svg. 偏移 0x04 的 UART_CTRL 画成细线格栅;金色只花在一个位域上——bit 0 的 RX_EN——这一行的其余部分读起来是一张安静的表。模板:templates/diagrams/register-bitfield.svg
SPI MODE 0 · CPOL=0 CPHA=0 MX25L6433F · JEDEC ID read command phase · MOSI drives data phase · MISO drives tCSS tSU ≥ 5 ns SCLK CS_N MOSI MISO 0x9F 0x00 0xC2 0x20 t0 t1 t2 t3 t4 t5 t6 t7 t8 data-valid window CS_N active window CS_N · focus signal high-Z (not driven) SCLK 25 MHz · bit period 40 ns
Timing · waveform时序 · 波形 An SPI mode-0 read across four lanes; the gold belongs to the CS_N focus signal, and its active-low window is the one tinted band. Template: templates/diagrams/hw-timing-waveform.svg. 四条信号车道上的 SPI 模式 0 读事务;金色属于 CS_N 焦点信号,它的低有效窗口是唯一的 tint 色带。模板:templates/diagrams/hw-timing-waveform.svg

Runtime 运行时

What actually happened on the CPUs. Time runs left to right; the traced task wears the gold. CPU 上真实发生的事。时间从左到右;被追踪的任务戴上金色。

SCHED · CFS RUN VIEW · 12 MS WINDOW trace-cmd record -e sched_switch -e sched_migrate_task IRQ eth0 rx migrate (load balance) CPU 0 CPU 1 CPU 2 app: render irq/eth0 idle preempted by irq/eth0 idle kworker/u8 idle kworker/u8 idle kworker/u8 idle idle app: render idle 0 2 4 6 8 10 12 ms app: render · traced task kworker / irq · other tasks idle migration of the traced task
Scheduler · timeline调度 · 时间线 Three CPUs, one story: the traced task app:render and its migration arrow carry the gold — preempting IRQ threads and kworkers stay in chocolate and gray. Template: templates/diagrams/sched-timeline.svg. 三个 CPU,一条故事线:被追踪的任务 app:render 和它的迁移箭头戴金色——抢占它的 IRQ 线程和 kworker 留在巧克力与灰。模板:templates/diagrams/sched-timeline.svg