RTL Syntax Primer: What Circuit Does Each Line Build?
Read fifteen common SystemVerilog constructs, see the circuit each one builds, and check good and bad versions with simulation and synthesis.
Readable classrooms on semiconductors, hardware security, RTL, AI systems, and advanced packaging.
80 articles · 44 comics · 36 articles with prose and diagrams
Read fifteen common SystemVerilog constructs, see the circuit each one builds, and check good and bad versions with simulation and synthesis.
Follow an eight-bit sensor value through hexadecimal, truncation, two’s complement and a real sign-extension bug, with a bilingual film, bit inspector and runnable RTL.
Compare bitwise and logical operators, then test exactly which sensor formats a channel accepts.
Follow a three-channel selector and trace the retained output of an incomplete assignment.
Trace carry in a four-bit sum, then compare a reading with a signed offset.
Build a channel bank at three sizes and test the boundary between a valid selector and an unused code.
Follow a sensor result through sampling, holds and synchronous reset.
Trace three samples through two registers and compare the values before and after each edge.
Count accepted samples across idle cycles and find the edge that completes a batch of four.
Follow a collector from idle through sampling to reporting and identify the event that moves each state.
Hold one result through three stalled cycles, then trace the old and new words during a simultaneous handoff.
Build an expected queue from accepted transactions and test whether it catches losses, duplicates, reordering and stalled-data corruption.
Trace valid and data through both designs and budget the setup time of each pipeline stage.
Change the sampling phase and follow a pulse and a held request across two clock domains.
Check a stalled output across edges and use cover to see if the test reached that condition.
Assemble a collector and check each delivery from its interface history in a reproducible handoff.
Build a one-bit mux for two sensor flags. Learn modules, ports, instances and continuous assignment, then run simulation and synthesis. Includes a lesson film, an interactive model and runnable RTL.
Follow G-17’s private inspection model from a copying exercise through signatures, encryption, protected execution, accelerators and deployment policy.
Twelve bilingual comic plates follow G-17 through board replacement, trusted provisioning and enrollment, revocation across two services, offline lists and retirement, with two concept labs and five explained questions.
Twelve bilingual comic plates follow a handheld terminal adding door access, explaining shared TPM and SE capabilities, application compatibility, provisioning and management authority, with two concept labs.
Twelve bilingual comic plates follow warehouse devices, distinguish TPM modules from DICE mechanisms, and trace protected secrets, measured derivation, updates and verification, with two interactive labs.
Twelve bilingual comic plates follow an encrypted research file and a company service, separating TPM key protection, sealing, measurement evidence and policy decisions, with two interactive labs.
Twelve plates explore PQC candidates through their jobs, lattice and decoding problems, hash-based signatures, and engineering tradeoffs, starting with two sci-fi names.
Twelve plates follow PQC selection: attacks on Rainbow and SIKE, the case for HQC, and research in Taiwan on implementation, optimization and verification.
Follow one research device through the coin-game analogy, controlled formation, electrical readout, reliability evidence and attack resistance. Twelve plates, a detailed bilingual article and two labs connect NeoPUF to key wrapping and authorized recovery.
Follow fictional MY-Lock's ten-year service plan through confidentiality, authentic updates, key dependencies, migration lead times, fixed ROM and policy floors, with two conceptual interactive labs.
Follow one encrypted research record through SRAM startup, changing conditions, aging, error correction and authorized recovery. Twelve plates, a detailed article and two interactive labs explain how to recover the same key.
Follow three proposed fixes for a lab lock through constant-time design, masking, RSA blinding, randomized ECC coordinates and device boundaries, with two interactive teaching labs.
Follow an encrypted access log from a lab door lock. Learn what keys protect, how computation can leave clues, and how DPA and CPA test key guesses. Distinguish implementation leakage from mathematical attacks.
Choose a key for a lock factory, then use cards to understand entropy, bias and known information. Learn how a DRBG uses a secret seed without creating fresh entropy.
A lock factory finds physical noise, but that does not yet make a key service. Follow one request through sampling, assessment, tests, conditioning, a DRBG and failures, then read the scope of NIST and ESV evidence.
Reset release is not one simultaneous instant across the chip. If permission crosses a clock domain or precedes startup checks, it may be used while the system appears to be booting.
A valid signature proves that a trusted key signed these bits. It does not by itself prove the version is acceptable, that the measured image is the one about to execute, or that a key is released in the right lifecycle.
Rejecting faulty output does not prove that a cryptographic implementation leaks no information. DFA uses correct-versus-faulty output differences; SIFA conditions on faulted computations that still return a correct output and analyzes statistical bias in an intermediate value.
A fault campaign is a reproducible experiment specification, not a few random bit flips followed by a percentage. It records design version, targets, timing, effects, budget, oracle, and what the model cannot simulate.
A simulated fault target has engineering value only when it maps to physical behavior. Calibration is not tuning RTL parameters until a fault “looks successful”; it compares target, window, effect, repeatability, and residual mismatch against traceable measurements.
A security conclusion must say what is protected, which faults are assumed, which boundaries were tested, which counterexamples remain, and what is unknown. An evidence package is not a pile of reports; it lets another engineer reproduce the result and see its limits.
The failed image from lesson 3 still needs a closed fetch gate. This time, the verifier sends four bits instead of one. The receiver must decide which of sixteen values means permission. That decision matters as much as the encoder.
Three verifiers vote to release the same failed image. One corrupted replica can be outvoted. A shared wrong input can make all three vote yes. Before counting copies, draw what they share.
A controller must observe four completed transfers before releasing a result. Its up counter says four and its down counter says zero. Their sum is still four. Only three transfers actually occurred. A shared enable has advanced both counters together.
The controller is checking an unauthorized image. Its six-bit state changes from CHECK to RELEASE without a completed authorization. The new code is legal. A state decoder recognizes it and opens the gate. We first count which substitutions can do that.
CHECK-to-RELEASE is a legal arc. A fault changes the condition selecting it. Later, a token from transaction 1 is offered for transaction 2. Both requests can look structurally normal. We trace the evidence that should belong to each accepting event.
Software writes the same configuration twice. The shadow comparator sees a match and commits it. If both writes carry the same wrong value, the protocol still succeeds. We distinguish update consistency from permission to choose that value.
The receiver accepts a bad request at edge 2. Sticky records the error afterward, and the system resets later. The alert works, but it cannot withdraw the accepted request. We put detection and response beside the accepting edge.
Can extra check bits stop a failed boot check from becoming permission? Compare parity, complementary encoding and SECDED, then examine miscorrection and blocking before acceptance.
A bit flip that misses a request is not evidence of a defense. Define storage, timing, recovery and trust assumptions, then interpret 42 reproducible fault cases.
A correct signature result can change before it reaches the CPU. Follow the stored decision to accepted fetches, state a fault model, and separate timely blocking from later alerts.
Begin with why people hack consoles, then examine PS4, Xbox 360, PS3, 3DS, and Switch security cases before connecting threat models to Secure Boot, TEE, and SoC memory isolation.
A readable history of console media checks, region rules, interoperability, and the different ways attackers crossed trust boundaries—from TMSS to PS1 discs and PS2 software flaws.
Follow update authorization, target compatibility, anti-rollback, interruption-safe installation, trial boot, signing-key rotation, and recovery—and learn what each safeguard cannot guarantee.
Starting with a factory gateway that asks to connect, this classroom explains how Secure Boot, Measured Boot, and Remote Attestation work together—and what a successful check cannot prove.
Start with photo conversion to separate individual latency, batch speedup and service throughput. Worked examples explain parallel work, Amdahl, shared bottlenecks and cost, followed by the limits of AI workflows, RISC-V claims and demand rebound.
Follow a research SoC incident through DEKs, KEKs, HUKs, authorization, rotation, revocation, recovery and cryptographic erasure. Twelve comics, a full lesson, engineering extensions and 26 runnable teaching-model tests.
Build a SHA-256 core for a firmware digest. Follow padded blocks, retained chaining state, 64 rounds and final delivery, with reference traces for debugging each stage.
Twelve comics follow a lab report across a hostile network, connecting TLS 1.3 keys, certificates, Finished and AEAD to authorization, forward secrecy and replay boundaries.
Twelve illustrated lessons start with one unfamiliar public key, open an X.509 certificate, follow its chain to a trust anchor, and finish with lifecycle, revocation, and device PKI.
Follow a repair notice through copied seals, hashes, signing, verification, and public-key trust. Twelve comics explain what a signature proves—and what still needs checking.
Twelve comics begin with the attacker's goal, then build Secure Boot from reset, a protected trust anchor, hashes, signatures, version policy, failure handling, and authenticated recovery.
Follow ECC from its 1985 origin through elliptic curves, point addition, Galois fields, scalar multiplication, and the simple idea that a private key is a number while a public key is a point.
Twelve illustrated lessons move from an exposed house key to HUK, key storage, trusted boot, secure storage, internal and external trust, and the complete hardware root-of-trust boundary.
Twelve illustrated lessons explain data movement, reticle stitching, defect tolerance, local SRAM, dataflow, CSoft, CS-4, prefill and decode, and the trade-offs among Cerebras, GPU clusters, and hardwired inference.
Start with Alice's first-key problem, build an intuitive picture of primes and modular cycles, work through RSA's complete 7→13→7 example, then return to public-key identity and key exchange.
Follow data stalls and conflicting cached copies to understand cache, MESI, snoops, and directories, then examine false sharing, memory ordering, and CXL's limits.
A ten-plate classroom on hardwired inference: why moving weights is expensive, how a 4-bit lookup-and-select teaching model works, and how to read HC1's public numbers without overclaiming.
Eight illustrated lessons separate RSA factorization, the elliptic-curve discrete logarithm, Shor's period clues, and the post-quantum migration work that matters today.
A story-led walkthrough of tokens, Query-Key matching, Value mixing, the two memory walls, and what KV cache saves—and still has to read—during autoregressive decoding.
Ten illustrated lessons explain SHA digests, resistance properties, the birthday bound, SHA-1's retirement, and the role of hashing in software and hardware security.
A 12-page visual guide to credentials, authentication, authorization, passwords, keys, certificates, tokens, device identity, attestation, and PUF. Start with a simple door-check story, then connect each picture to practical security design.
A six-page classroom that starts with a simple question: how does an LLM keep writing one piece at a time? We begin with next-token prediction, then move into tokens, vectors, K/V notes, KV Cache, and the memory cost that appears when conversations get long.
A nine-page classroom that turns the EU Cyber Resilience Act into a product-readiness map: scope, reporting dates, product classes, Annex I duties, conformity assessment, CE marking, and the evidence a real team must keep.
Two CPUs both say 3GHz. Why does one finish the same job sooner? Follow a factory's work orders to understand IPC, branch prediction, out-of-order execution, and memory waits, then learn what a specification sheet leaves out.
Follow two identical-looking cartridges through certificates, fresh identity proofs, PUF-backed key protection and rollback-resistant records. Twelve plates, a full article and interactive experiments explain what each defense establishes.
Twelve plates follow one conversational service from first-token and decode delays to weight and KV budgets, batching, quantization, HBM, ASICs, CXL and conditional near-memory work.
Follow one secure gateway from an algorithm record through module boundaries, keys, self-tests, security levels and certificate checks.
A six-page classroom on the base die at the bottom of an HBM stack. It explains why the base die is more than wiring, how traditional DRAM repair changes in a 3D stack, and why repair can protect the value of the whole AI package.
Follow one accelerator upgrade decision through twelve plates: capacity, bandwidth, latency, stack connections and the HBM4 interface.
Follow an exposed data key to a protected root, distinguish weak and strong PUF families, and explore RO and Arbiter races through twelve comics, detailed prose and two interactive labs.
Eleven bilingual plates and two labs explain AES blocks, rounds, modes and GCM, with distinct checks for confidentiality, integrity and rollback.
Follow one AI accelerator through 12 comic pages on bandwidth, CoWoS-S/R/L, TSV, RDL, ABF, GDDR and HBM, then assess power, heat, testing and panel costs.
Build an iterative AES-128 core for a sensor block. Align data and round keys, define accepted transfers, hold ciphertext under backpressure, and debug against NIST intermediate values.