cg_docs
Fetch markdown documentation for Cg hardware design topics. Start with 'context' for language basics or 'riscv' for a worked RV32I CPU reference.
Instructions
Fetch a markdown knowledge doc. No topic → an index of available topics with descriptions; a topic → its full content. Topics: 'context' (the core C⏚ language pack — load before writing any Cg) and 'riscv' (the worked RV32I CPU reference: the loadable single-cycle core and the reusable patterns for CPU-shaped hardware in Cg — barrel shifter, signed/unsigned widening, sub-word load/store, count-prefixed boot-stream program loading, and the lossless-capture / address-filtered testbench patterns). Read 'riscv' when building or extending a processor, instruction decoder, datapath, or stack machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No |