Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
change buffer initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKarvandi committed Apr 4, 2024
1 parent b02264d commit 11f3eda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/hwdbg/libs/mem/init_mem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import hwdbg.configs._

class InitMemInline(
debug: Boolean = DebuggerConfigurations.ENABLE_DEBUG,
memoryFile: String = "",
memoryFile: String = TestingConfigurations.BRAM_INITIALIZATION_FILE_PATH,
addrWidth: Int = DebuggerConfigurations.BLOCK_RAM_ADDR_WIDTH,
width: Int = DebuggerConfigurations.BLOCK_RAM_DATA_WIDTH,
size: Int =
Expand Down Expand Up @@ -58,7 +58,7 @@ object InitMemInline {

def apply(
debug: Boolean = DebuggerConfigurations.ENABLE_DEBUG,
memoryFile: String = "",
memoryFile: String = TestingConfigurations.BRAM_INITIALIZATION_FILE_PATH,
addrWidth: Int = DebuggerConfigurations.BLOCK_RAM_ADDR_WIDTH,
width: Int = DebuggerConfigurations.BLOCK_RAM_DATA_WIDTH,
size: Int =
Expand Down
9 changes: 6 additions & 3 deletions src/main/scala/hwdbg/main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ class DebuggerMain(
//
// Used for testing verilog generation, should be removed
//
io.outputPin := io.inputPin
io.psOutInterrupt := io.plInSignal
io.rdAddr := io.rdData | io.wrAddr | io.wrData | io.wrEna
for (i <- 0 until numberOfOutputPins) {
io.outputPin(i) := 0.U
}

io.psOutInterrupt := false.B
io.rdData := 0.U
}

object DebuggerMain {
Expand Down

0 comments on commit 11f3eda

Please sign in to comment.