Support non-prefixed ports
This commit is contained in:
@@ -119,7 +119,7 @@ trait HasSRAMGenerator {
|
|||||||
write: Boolean,
|
write: Boolean,
|
||||||
writeEnable: Boolean = false
|
writeEnable: Boolean = false
|
||||||
): MacroPort = {
|
): MacroPort = {
|
||||||
val realPrefix = prefix + "_"
|
val realPrefix = if (prefix == "") "" else prefix + "_"
|
||||||
|
|
||||||
MacroPort(
|
MacroPort(
|
||||||
address=PolarizedPort(name=realPrefix + "addr", polarity=ActiveHigh),
|
address=PolarizedPort(name=realPrefix + "addr", polarity=ActiveHigh),
|
||||||
|
|||||||
Reference in New Issue
Block a user