展开文件结构

This commit is contained in:
Ruige Lee
2025-04-02 16:40:25 +08:00
parent 6c6cce1222
commit 658d0d1ea2
7 changed files with 197 additions and 0 deletions

View 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())
}