加入测试led方便FPGA测试,最终版请撤销本提交
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user