chipsalliance / chipsalliance/chisel

Use package names in generated Verilog modules

Open
#1,898 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
4.8k
Forks
658
Avg merge
18h 59m
Merged PRs (30d)
14

Description

**Type of issue**: feature request

**Impact**: unknown, depending on the resulting API change

In Scala/Java land we use packages to minimize possible name clashing. However, these package names are dropped from the Verilog module names. Would be nice to keep them (e.g., module package_ClassName). This is especially useful for mixed-language projects (e.g., Chisel code is not the top-level).

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the issue. Start by locating the Verilog module-name generation entry point and existing tests for generated names, then trace how Scala package names are discarded. Done means package-qualified module names are emitted without collisions and the resulting API or compatibility impact is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.