Overview Version History Q & A Rating & Review
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
npm install
npm run build
Open this folder in VS Code and press F5, "Run HKPS Verilog Reader"
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