Skip to content

Commit

Permalink
add mcmcstrip pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiz01 committed Sep 21, 2018
1 parent aff3c88 commit 6903ccf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/param/DefaultParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ trait DefaultParams {
case "rstrip" => RowStrip()
case "mixall" => MixAll()
case "half&half" => HalfAndHalf()
case "MCMcstrip" => MCMColumnStrip()
}

}
17 changes: 17 additions & 0 deletions src/param/top/Patterns.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ case class ColumnStrip (
if (j % 2 == 0) pcuParam else pmuParam
}
}
/*
*
* +-----+-----+-----+
* | PMU | PCU | PMU |
* +-----+-----+-----+
* | PMU | PCU | PMU |
* +-----+-----+-----+
*
* */
case class MCMColumnStrip (
pcuParam:PCUParam=PCUParam(),
pmuParam:PMUParam=PMUParam()
) extends GridCentrolPattern {
def cuAt(i:Int, j:Int) = {
if (i % 3 % 2 == 0) pmuParam else pcuParam
}
}
/*
*
* +-----+-----+
Expand Down

0 comments on commit 6903ccf

Please sign in to comment.