Skip to content

Commit

Permalink
Use harness binder chipId to support multi-chip id pins
Browse files Browse the repository at this point in the history
  • Loading branch information
Ella Schwarz authored and Ella Schwarz committed Jan 12, 2024
1 parent 8a4fc7c commit 67faf0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import testchipip.soc.{OBUS}

// Simple design which exposes a second serial-tl port that can connect to another instance of itself
class SymmetricChipletRocketConfig extends Config(
new testchipip.soc.WithChipIdPin ++ // Add pin to identify chips
new chipyard.harness.WithSerialTLTiedOff(tieoffs=Some(Seq(1))) ++ // Tie-off the chip-to-chip link in single-chip sims
new testchipip.serdes.WithSerialTL(Seq(
testchipip.serdes.SerialTLParams( // 0th serial-tl is chip-to-bringup-fpga
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ class WithSimTSIOverSerialTL extends HarnessBinder({

//TODO: Set with chipId argument to harness binder, hardcoding is temporary hack
class WithDriveChipIdPin extends HarnessBinder({
case (th: HasHarnessInstantiators, port: ChipIdPort) => {
port.io := 0.U
case (th: HasHarnessInstantiators, port: ChipIdPort, chipId: Int) => {
port.io := chipId.U
}
})

Expand Down

0 comments on commit 67faf0c

Please sign in to comment.