Merge branch 'firrtl-1.4-remove-clk-stuff' into chisel34
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user