Skip to content
STIMSMITH

gen_program_header

CodeArtifact

gen_program_header is a function in the riscv_asm_program_gen assembly-program generation flow. It is called by gen_program(), populates the instr_stream string array with program header content, and delegates insertion of the _start section to gen_section("_start", str).

First seen 5/26/2026
Last seen 5/28/2026
Evidence 1 chunks
Wiki v1

WIKI

Overview

gen_program_header is part of the riscv_asm_program_gen.sv assembly generation flow used in CHIPS Alliance's open-source riscv-dv random instruction generator for RISC-V processor verification. The surrounding riscv_asm_program_gen class generates complete RISC-V assembly programs, including sections such as initialization routines, instruction sections, data sections, stack sections, page tables, and interrupt/exception handling. [C1]

Role in the generation flow

READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

3 connections
riscv_asm_program_gen part of → 100% 2e
gen_program_header is a function within riscv_asm_program_gen called by gen_program.
gen_section uses → 100% 2e
gen_program_header calls gen_section to insert the header instructions.
gen_program ← uses 100% 2e
gen_program calls gen_program_header to generate the program header.

CITATIONS

5 sources
5 citations — click to expand
[1] riscv_asm_program_gen is part of CHIPS Alliance's open-source riscv-dv generator and generates complete RISC-V assembly programs with multiple sections. RISC-V source class riscv_asm_program_gen, the brain behind ...
[2] gen_program() is the main assembly-program generation function and calls gen_program_header() during its sequence. RISC-V source class riscv_asm_program_gen, the brain behind ...
[3] gen_program_header() uses the instr_stream string array to fill header content, with an example output of .include "user_init.s". RISC-V source class riscv_asm_program_gen, the brain behind ...
[4] gen_program_header() calls gen_section("_start", str), which inserts header instructions into instr_stream. RISC-V source class riscv_asm_program_gen, the brain behind ...
[5] After gen_program_header(), the documented gen_program() flow calls init_gpr(), generates directed instruction streams, converts instruction streams to assembly string format, optionally inserts subprograms, and adds host-interface instructions. RISC-V source class riscv_asm_program_gen, the brain behind ...