diff options
| author | HappyQuark | 2020-09-10 04:18:08 +1000 |
|---|---|---|
| committer | GitHub | 2020-09-09 18:18:08 +0000 |
| commit | 88265eec586046e6ec96b4615e5516be0f3d9e2c (patch) | |
| tree | 0fa14c05b6bd5565c6bb7e122b51d2b130069165 /src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala | |
| parent | 05ac57c160c58268c571b74d6f688b87ff4312b0 (diff) | |
Fix load memory from file to work with binary (#1583)
* fix loadMemoryFromFile to work with binary
Passed in hexOrBinary parameter to ChiselLoadMemoryAnnotation
* Added test for binary format support in loadMemoryFromFile
* Added test for binary format support in loadMemoryFromFile
Diffstat (limited to 'src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala')
| -rw-r--r-- | src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala b/src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala index 92bfcde7..4beafa19 100644 --- a/src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala +++ b/src/main/scala/chisel3/util/experimental/LoadMemoryTransform.scala @@ -112,7 +112,7 @@ object loadMemoryFromFile { fileName: String, hexOrBinary: MemoryLoadFileType.FileType = MemoryLoadFileType.Hex ): Unit = { - annotate(ChiselLoadMemoryAnnotation(memory, fileName)) + annotate(ChiselLoadMemoryAnnotation(memory, fileName, hexOrBinary)) } } |
