Skip to content

Commit

Permalink
update proute addr calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiz01 committed Jul 25, 2018
1 parent 5bff6e6 commit c42f64b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen/dot/NetworkDotCodegen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class NetworkDotCodegen[B<:PinType:ClassTag](val fileName:String)(implicit compi
n match {
case n:Routable =>
val List(x,y) = indexOf(n)
val idx = (param.numTotalRows-1-y) * param.numTotalCols + x
val maxDim = math.max(param.numTotalRows, param.numTotalCols)
val idx = (param.numTotalRows-1-y) * maxDim + x
label += s"\n($idx)"
case n =>
}
Expand Down

0 comments on commit c42f64b

Please sign in to comment.