1
0

diplomacy: define only primary node types

This commit is contained in:
Wesley W. Terpstra
2017-10-27 00:26:35 -07:00
parent eeb11a2693
commit 7cf5d4aa90
7 changed files with 14 additions and 16 deletions

View File

@ -7,6 +7,8 @@ import freechips.rocketchip.config.Parameters
package object diplomacy
{
type SimpleNodeHandle[D, U, B <: Chisel.Data] = NodeHandle[D, U, B, D, U, B]
def sourceLine(sourceInfo: SourceInfo, prefix: String = " (", suffix: String = ")") = sourceInfo match {
case SourceLine(filename, line, col) => s"$prefix$filename:$line:$col$suffix"
case _ => ""