Skip to content

Commit

Permalink
BlockDevice and SerialAdapter require minLatency > 0 (Fix Issue #88)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhemao committed Jun 28, 2020
1 parent 0a482f5 commit 8b5c89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/BlockDevice.scala
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class BlockDeviceTrackerModule(outer: BlockDeviceTracker)
val req = Reg(new BlockDeviceFrontendRequest)

require (tl.a.bits.data.getWidth == dataBitsPerBeat)
require (edge.manager.minLatency > 0)

val (s_idle :: s_bdev_req :: s_bdev_read_data ::
s_bdev_write_data :: s_bdev_write_resp ::
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/SerialAdapter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class SerialAdapterModule(outer: SerialAdapter) extends LazyModuleImp(outer) {

val (mem, edge) = outer.node.out(0)

require (edge.manager.minLatency > 0)

val pAddrBits = edge.bundle.addressBits
val wordLen = 64
val nChunksPerWord = wordLen / w
Expand Down

0 comments on commit 8b5c89a

Please sign in to comment.