加入测试led方便FPGA测试,最终版请撤销本提交

This commit is contained in:
Ruige Lee
2025-05-22 19:45:07 +08:00
parent df0eeeb956
commit bc7cf31916
2 changed files with 9 additions and 3 deletions

View File

@@ -45,6 +45,7 @@ class ShinTopIO extends Bundle{
val oSync = Output(Vec(4, Bool()))
val isSoftReset = Output(Bool())
val ledTest = Output(UInt(8.W))
}
@@ -58,6 +59,8 @@ abstract class ShinTopBase extends Module{
// val CDRIn = for( i <- 0 until 2 ) yield { Module(new CDRIn) }
// val CDROut = for( i <- 0 until 2 ) yield { Module(new CDROut) }
val slaveParser = Module(new SlaveParser )
val masterParser = Module(new MasterParser)
@@ -67,6 +70,9 @@ abstract class ShinTopBase extends Module{
val upCDROut = Module(new CDROut)
val interface = Module(new Interface)
io.ledTest := RegNext( interface.io.cReg.hwVersion(7,0), "h55".U )
io.isSoftReset := interface.io.isSoftReset
downCDRIn.io.serDat := io.dDatIn