SRAM depth to bigint

max synflop depth support
Fix annotation mangling on the harness side
This commit is contained in:
Colin Schmidt
2019-05-02 14:36:57 -07:00
committed by Colin Schmidt
parent e548210ef4
commit c23b2b6f84
19 changed files with 383 additions and 276 deletions

View File

@@ -31,34 +31,34 @@ class SelectCostMetric extends MacroCompilerSpec with HasSRAMGenerator {
val libSRAMs = Seq(
SRAMMacro(
name="SRAM_WIDTH_128",
depth=1024,
depth=BigInt(1024),
width=128,
family="1rw",
ports=Seq(
generateReadWritePort("", 128, 1024)
generateReadWritePort("", 128, BigInt(1024))
)
),
SRAMMacro(
name="SRAM_WIDTH_64",
depth=1024,
depth=BigInt(1024),
width=64,
family="1rw",
ports=Seq(
generateReadWritePort("", 64, 1024)
generateReadWritePort("", 64, BigInt(1024))
)
),
SRAMMacro(
name="SRAM_WIDTH_32",
depth=1024,
depth=BigInt(1024),
width=32,
family="1rw",
ports=Seq(
generateReadWritePort("", 32, 1024)
generateReadWritePort("", 32, BigInt(1024))
)
)
)
val memSRAMs = Seq(generateSRAM("target_memory", "", 128, 1024))
val memSRAMs = Seq(generateSRAM("target_memory", "", 128, BigInt(1024)))
writeToLib(lib, libSRAMs)
writeToMem(mem, memSRAMs)