Skip to content

Commit 045c747

Browse files
committed
memory loading on compile
1 parent 19792e5 commit 045c747

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/scala/RISCV/Memory.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package RISCV
22

33
import chisel3._
44
import _root_.circt.stage.ChiselStage
5-
// import chisel3.util.experimental.loadMemoryFromFileInline
5+
import chisel3.util.experimental.loadMemoryFromFileInline
66

77
class Memory() extends Module {
88
val io = IO(new Bundle {
@@ -24,7 +24,8 @@ class Memory() extends Module {
2424
})
2525

2626
val memory = SyncReadMem(1024, UInt(32.W))
27-
// loadMemoryFromFileInline(memory, "program.hex")
27+
loadMemoryFromFileInline(memory, "program.hex")
28+
2829
io.address_vga := 0.U
2930
io.write_vga := true.B
3031
io.write_value_vga := 0.U

0 commit comments

Comments
 (0)