Merge branch 'firrtl-1.4-remove-clk-stuff' into chisel34

This commit is contained in:
Tim Snyder
2020-10-23 13:08:48 -05:00
committed by GitHub
30 changed files with 174 additions and 2431 deletions

View File

@@ -1,9 +1,11 @@
// See LICENSE for license details.
package barstools.macros
import firrtl.ir.{Circuit, NoInfo}
import firrtl.passes.RemoveEmpty
import firrtl.Parser.parse
import firrtl.Utils.getUIntWidth
import java.io.{File, StringWriter}
import mdf.macrolib.SRAMMacro
@@ -247,10 +249,10 @@ trait HasSimpleTestGenerator {
val v = s"${generatorType}${extraTagPrefixed}.v"
lazy val mem_name = "target_memory"
val mem_addr_width = getUIntWidth(memDepth-1)
val mem_addr_width = MacroCompilerMath.ceilLog2(memDepth)
lazy val lib_name = "awesome_lib_mem"
val lib_addr_width = getUIntWidth(libDepth-1)
val lib_addr_width = MacroCompilerMath.ceilLog2(libDepth)
// Override these to change the port prefixes if needed.
def libPortPrefix: String = "lib"