Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>HKPS Verilog ReaderNew to Visual Studio Code? Get it now.
HKPS Verilog Reader

HKPS Verilog Reader

Hong Kong Programming Society

| (0) | Free
A reading coach for Verilog: hierarchy, drivers, always-block meaning, and FSMs for programmers learning hardware.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HKPS Verilog Reader

A reading coach, not another syntax highlighter. For programmers who already write high-level languages and are learning Verilog.

After opening a .v / .sv file it answers:

  • which module is top, and which boxes it instantiates
  • where a signal is written and where it is read
  • whether an always is a flip-flop, combinational logic, or a possible latch
  • an FSM graph only when confidence is high; otherwise it refuses to draw one
  • inactive `ifdef branches are faded

Results are a syntax index, not slang / Verilator elaboration. generate and interface are not expanded.

Author

Peter peter@hkprog.org

Use

  1. npm install
  2. npm run build
  3. Open this folder in VS Code and press F5, "Run HKPS Verilog Reader"
  4. The HKPS Verilog sidebar has hierarchy and signal drivers/loads

Command Palette:

  • HKPS: Show Connected Signals (also runs when you click a signal; fills the Signal Net view in the sidebar)
  • HKPS: Trace Drivers of Signal
  • HKPS: Trace Loads of Signal
  • HKPS: Explain Always Block
  • HKPS: Show FSM
  • HKPS: Refresh Workspace Index

Settings:

  • hkps.analogy.enabled: software analogies in hovers. On by default.
  • hkps.macros: for example { "SYNTHESIS": 1 }, used to fade `ifdef branches
  • hkps.clockDecorations: underline flip-flop write targets

Test

npm test

Fixtures live in test/fixtures. Each file teaches one thing: counter, assign, latch, mixed blocking, hierarchy, multi-driver, FSM, ifdef, part-select, two clocks.

publish

vsce package
vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft