展开文件结构
This commit is contained in:
54
src/main/scala/backBoard/shin/ShinTop.scala
Normal file
54
src/main/scala/backBoard/shin/ShinTop.scala
Normal file
@@ -0,0 +1,54 @@
|
||||
package BACK
|
||||
|
||||
import chisel3._
|
||||
import chisel3.util._
|
||||
|
||||
|
||||
class ShinTopIO extends Bundle{
|
||||
val clk8x = Input(Bool())
|
||||
val modeSel = Input(Bool())\
|
||||
|
||||
val dDatIn = Input(Bool())
|
||||
val dDatOut = Output(Bool())
|
||||
val uDatIn = Input(Bool())
|
||||
val uDatOut = Output(Bool())
|
||||
|
||||
val qspi =
|
||||
val interrupt = Output(Bool())
|
||||
val ctrl = Input(UInt(4.W))
|
||||
}
|
||||
|
||||
|
||||
|
||||
class ShinTop extends Module{
|
||||
val io: ShinTopIO = IO(new ShinTopIO)
|
||||
|
||||
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)
|
||||
|
||||
val sram = Module(new ShareSRAMDP)
|
||||
|
||||
val interface = Module(new Interface)
|
||||
|
||||
|
||||
sram.io.addrA := Input(UInt(15.W))
|
||||
sram.io.datawA := Input( UInt(8.W) )
|
||||
sram.io.datarA := Output( UInt(8.W) )
|
||||
sram.io.enwA := Input(Bool())
|
||||
sram.io.enrA := Input(Bool())
|
||||
sram.io.clockA := Input(Bool())
|
||||
|
||||
sram.io.addrB := Input(UInt(15.W))
|
||||
sram.io.datawB := Input( UInt(8.W) )
|
||||
sram.io.datarB := Output( UInt(8.W) )
|
||||
sram.io.enwB := Input(Bool())
|
||||
sram.io.enrB := Input(Bool())
|
||||
sram.io.clockB := Input(Bool())
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user