summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/Parameters.scala
diff options
context:
space:
mode:
authorHenry Cook2015-08-10 14:45:58 -0700
committerHenry Cook2015-08-10 14:45:58 -0700
commit0d2f241a7ffbadaaa2765b504d98442613766c59 (patch)
tree5d094b1d7872dd71e4ee0326371d7d2ccd260ffc /src/main/scala/Chisel/Parameters.scala
parent27c4e0fc6af6379d25990b90a0382774bc7c4765 (diff)
Parameter cleanup
Diffstat (limited to 'src/main/scala/Chisel/Parameters.scala')
-rw-r--r--src/main/scala/Chisel/Parameters.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main/scala/Chisel/Parameters.scala b/src/main/scala/Chisel/Parameters.scala
index 2c9c7f69..34a03f51 100644
--- a/src/main/scala/Chisel/Parameters.scala
+++ b/src/main/scala/Chisel/Parameters.scala
@@ -135,8 +135,6 @@ object Dump {
// objects given to the user in mask functions (site,here,up)
abstract class View {
- // the list of classes in our current path down the heirarchy
- def path: List[Class[_]]
protected val deftSite: View // when views are queried without a specifying a site this is the default
@@ -172,7 +170,6 @@ final case class ViewSym(view:View) {
// internal type to represent functions that evaluate parameter values
abstract class _Lookup {
- var path:List[Class[_]] = null
def apply[T](pname:Any, site:View):Ex[T]
@@ -180,7 +177,6 @@ abstract class _Lookup {
final def push() = {
val me = this
new _Lookup {
- this.path = me.path
def apply[T](pname:Any, site:View) = me.apply(pname, site)
}
}
@@ -217,7 +213,6 @@ abstract class World(
val _knobs = new mutable.HashSet[Any]
abstract class _View extends View {
val look: _Lookup
- def path = look.path
def apply[T](pname:Any, site:View):T = {
_eval(look(pname, site).asInstanceOf[Ex[T]])
@@ -261,7 +256,6 @@ abstract class World(
// the top level lookup
def _topLook():_Lookup = {
class TopLookup extends _Lookup {
- this.path = Nil
def apply[T](pname:Any, site:View):Ex[T] = {
val here = _otherView(this, site)
@@ -429,12 +423,6 @@ final class Parameters(
def push():Parameters =
new Parameters(_world, _look.push())
- // parameter's paths should be immutable but I foresee that not being sufficient
- // when integrated into the chisel Module factory.
- def path = _look.path
- def path_=(x:List[Class[_]]) =
- _look.path = x
-
def apply[T](field:Any):T =
_world._eval(_look(field, _site())).asInstanceOf[T]
@@ -449,7 +437,6 @@ final class Parameters(
private def _alter(mask:(/*field*/Any,/*site*/View,/*here*/View,/*up*/View)=>Any) = {
class KidLookup extends _Lookup {
- this.path = _look.path
def apply[T](f:Any, site:View):Ex[T] = {
val here = _world._otherView(this, site)