Skip to content

Commit

Permalink
Add a few spinalSimWhiteBox to ecp5 ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Mar 22, 2021
1 parent 225bc80 commit b0f7dfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/main/scala/spinal/lib/blackbox/lattice/ecp5/IO.scala
Expand Up @@ -52,6 +52,8 @@ case class IFS1P3BX() extends BlackBox{
val SCLK, PD, SP, D = in Bool()
val Q = out Bool()
mapCurrentClockDomain(SCLK)
Q := RegNext(D)
spinalSimWhiteBox()
}

object OFS1P3BX{
Expand All @@ -67,6 +69,10 @@ case class OFS1P3BX() extends BlackBox{
val SCLK, PD, SP, D = in Bool()
val Q = out Bool()
mapCurrentClockDomain(SCLK)

Q := RegNext(D)

spinalSimWhiteBox()
}


Expand All @@ -76,4 +82,6 @@ case class Ulx3sUsrMclk() extends BlackBox{

val USRMCLKI = in Bool()
val USRMCLKTS = in Bool()

spinalSimWhiteBox()
}

0 comments on commit b0f7dfd

Please sign in to comment.