序列号区域拉到顶层

This commit is contained in:
Ruige Lee
2025-08-08 16:28:39 +08:00
parent e4e42bc888
commit 7d39514eb8
2 changed files with 17 additions and 8 deletions

View File

@@ -29,6 +29,8 @@ class ShinTopIO extends Bundle{
val interrupt = Output(Bool())
val latchPin = Input(Vec(2, Bool()))
val hwSerial = Input(UInt(48.W))
val uniCode = Input(UInt(64.W))
}
@@ -50,6 +52,8 @@ abstract class ShinTopBase extends Module{
val interface = Module(new Interface)
interface.io.latchPin := io.latchPin
interface.io.uniCode := io.uniCode
interface.io.hwSerial := io.hwSerial
interface.io.intTransEnd(0) := downCDRIn.io.axis.fire & downCDRIn.io.axis.bits.tlast
interface.io.intTransEnd(1) := downCDROut.io.axis.fire & downCDROut.io.axis.bits.tlast