chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

Taken Out the reset_vector pin out of the TestHarness Top module File

Open ashu-bitspilani opened this issue 2 years ago • 0 comments

Background Work

Chipyard Version and Hash

Release: 1.5.0 Hash: a6a6a6

OS Setup

Ex: Output of uname -a + lsb_release -a + printenv + conda list

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

Hi, I want to take the reset_vector pin out of the Testharness top module file as I don't want to use the default bottom. I found that in the FlatTestHarness.scala, which is the top hierarchy file, and tried to invoke this signal here.

image

Expected Behavior

In the compilation it is giving me error that

[error] /home/ssddls1/ashutosh/florence_project/official_florence/generators/chipyard/src/main/scala/example/FlatTestHarness.scala:50:7: value reset_vector is not a member of FlatTestHarness.this.lazyDut.FlatChipTopImpl
[error]   dut.reset_vector.foreach(_ := x"1000_0000".U)
[error]       ^
[error] one error found

I also passed import freechips.rocketchip.subsystem.{HasTilesModuleImp} because the definition of reset_vector is in the HasTilesModuleImp but still facing the same issue.

Looks like In the FlatTestHarness.scala , it is invoking FlatChipTop.scala which is hard-coded already, Should I have to change the Chiptop File ?

Other Information

No response

ashu-bitspilani avatar Feb 13 '24 10:02 ashu-bitspilani