WIP scala compile and firrtl elaborate; monitor error
This commit is contained in:
		@@ -1,12 +1,22 @@
 | 
			
		||||
package groundtest
 | 
			
		||||
 | 
			
		||||
import Chisel._
 | 
			
		||||
import cde.{Parameters}
 | 
			
		||||
import cde.Parameters
 | 
			
		||||
import diplomacy._
 | 
			
		||||
import coreplex._
 | 
			
		||||
import uncore.devices.NTiles
 | 
			
		||||
import rocket.TileId
 | 
			
		||||
import uncore.tilelink.TLId
 | 
			
		||||
 | 
			
		||||
class GroundTestCoreplex(implicit p: Parameters) extends BaseCoreplex
 | 
			
		||||
    with BroadcastL2
 | 
			
		||||
    with DirectConnection {
 | 
			
		||||
  val tiles = (0 until p(NTiles)).map { i =>
 | 
			
		||||
    LazyModule(new GroundTestTile()(p.alterPartial({
 | 
			
		||||
      case TLId => "L1toL2"
 | 
			
		||||
      case TileId => i
 | 
			
		||||
    })))
 | 
			
		||||
  }
 | 
			
		||||
  override lazy val module = new GroundTestCoreplexModule(this, () => new GroundTestCoreplexBundle(this))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -14,5 +24,5 @@ class GroundTestCoreplexBundle[+L <: GroundTestCoreplex](_outer: L) extends Base
 | 
			
		||||
 | 
			
		||||
class GroundTestCoreplexModule[+L <: GroundTestCoreplex, +B <: GroundTestCoreplexBundle[L]](_outer: L, _io: () => B) extends BaseCoreplexModule(_outer, _io)
 | 
			
		||||
    with DirectConnectionModule {
 | 
			
		||||
  io.success := tiles.flatMap(_.io.elements get "success").map(_.asInstanceOf[Bool]).reduce(_&&_)
 | 
			
		||||
  io.success := outer.tiles.flatMap(_.module.io.elements get "success").map(_.asInstanceOf[Bool]).reduce(_&&_)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user