Initialize (FPGA) memory in Chisel 6

Open
#4,496 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
scala
Domain
embedded-iot

Research direction

Start by running sbt test in the chisel-book repository at the Chisel 6 version and inspect the reported failure. Read src/main/scala/memory.scala lines 107-130 alongside src/test/scala/MemoryTest.scala lines 118-140 to understand the FPGA memory initialization case. Done means the existing memory test passes under Chisel 6.

Written by the indexing model from the issue text.

Description

Type of issue: Bug Report

Please provide the steps to reproduce the problem:

Initializing memory is broken now. See for an error: https://github.com/schoeberl/chisel-book/actions/runs/11708082480/job/32608967721

The code is here: https://github.com/schoeberl/chisel-book/blob/6ee398bd61bf8cdee02abcd780a2035b8cff4d1a/src/main/scala/memory.scala#L107-L130

and the test at: https://github.com/schoeberl/chisel-book/blob/6ee398bd61bf8cdee02abcd780a2035b8cff4d1a/src/test/scala/MemoryTest.scala#L118-L140

You can also reproduce it by running sbt test in the chisel-book repo, which is currently committed to version 6.

Dominant language
Scala
Stars
4.8k
Forks
669
Avg merge
1d 12h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from chipsalliance/chisel

All issues in chipsalliance/chisel

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.