-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add point to point connection network
- Loading branch information
Showing
46 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package spade | ||
package node | ||
import param._ | ||
|
||
case class PointToPointTop( | ||
override val param:PointToPointTopParam | ||
)(implicit design:SpadeDesign) extends GridTop { | ||
import param._ | ||
import design.spademeta._ | ||
|
||
@transient val cuArray = List.tabulate(numCols, numRows) { case (i,j) => | ||
if (i == numCols/2-1 && j == numRows-1) { | ||
bundleGroup(fringePattern.argFringeParam, coord=Some(i+fringeNumCols,j)) | ||
} else { | ||
bundleGroup( | ||
centrolPattern.cuAt(i,j), | ||
coord=Some(i+fringeNumCols, j) | ||
) | ||
} | ||
} | ||
|
||
@transient val dagArray = fringePattern.dagParam.map { dagParam => | ||
List.tabulate(2, numRows) { case (i, j) => | ||
bundleGroup( | ||
dagParam, | ||
coord=Some(if (i==0) (1, j) else (numTotalCols-2, j)) | ||
) | ||
} | ||
} | ||
|
||
@transient val mcArray = List.tabulate(2, numRows) { case (i, j) => | ||
bundleGroup( | ||
fringePattern.mcParam, | ||
coord=Some(if (i==0) (0,j) else (numTotalCols-1,j)) | ||
) | ||
} | ||
|
||
val networks = Nil | ||
|
||
createSubmodules | ||
|
||
override def minInputs[B<:PinType:ClassTag](param:Parameter) = 1000 | ||
|
||
override def maxInputs[B<:PinType:ClassTag](param:Parameter) = 1000 | ||
|
||
override def minOutputs[B<:PinType:ClassTag](param:Parameter) = 1000 | ||
|
||
override def maxOutputs[B<:PinType:ClassTag](param:Parameter) = 1000 | ||
} | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package spade | ||
package param | ||
|
||
import SpadeConfig._ | ||
case class PointToPointTopParam( | ||
numRows:Int=option[Int]("row"), | ||
numCols:Int=option[Int]("col"), | ||
centrolPattern:GridCentrolPattern=defaultCentrolPattern, | ||
fringePattern:GridFringePattern=defaultFringePattern | ||
) extends GridTopParam { | ||
val busWithReady = true | ||
val fringeNumCols = fringePattern match { | ||
case _:MCOnly => 1 | ||
case _:MC_DramAG => 2 | ||
} | ||
// Oneside | ||
val numTotalRows = numRows | ||
val numTotalCols = numCols+fringeNumCols*2 | ||
val networkParams = Nil | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.