coreplex: DefaultCoreplex => RocketPlex
This commit is contained in:
		
				
					committed by
					
						 Andrew Waterman
						Andrew Waterman
					
				
			
			
				
	
			
			
			
						parent
						
							99de42d34c
						
					
				
				
					commit
					bdb526a9f0
				
			| @@ -1,24 +0,0 @@ | |||||||
| // See LICENSE.SiFive for license details. |  | ||||||
|  |  | ||||||
| package coreplex |  | ||||||
|  |  | ||||||
| import Chisel._ |  | ||||||
| import config._ |  | ||||||
| import diplomacy._ |  | ||||||
| import util._ |  | ||||||
|  |  | ||||||
| ///// |  | ||||||
|  |  | ||||||
| class DefaultCoreplex(implicit p: Parameters) extends BaseCoreplex |  | ||||||
|     with CoreplexRISCVPlatform |  | ||||||
|     with HasRocketTiles { |  | ||||||
|   override lazy val module = new DefaultCoreplexModule(this, () => new DefaultCoreplexBundle(this)) |  | ||||||
| } |  | ||||||
|  |  | ||||||
| class DefaultCoreplexBundle[+L <: DefaultCoreplex](_outer: L) extends BaseCoreplexBundle(_outer) |  | ||||||
|     with CoreplexRISCVPlatformBundle |  | ||||||
|     with HasRocketTilesBundle |  | ||||||
|  |  | ||||||
| class DefaultCoreplexModule[+L <: DefaultCoreplex, +B <: DefaultCoreplexBundle[L]](_outer: L, _io: () => B) extends BaseCoreplexModule(_outer, _io) |  | ||||||
|     with CoreplexRISCVPlatformModule |  | ||||||
|     with HasRocketTilesModule |  | ||||||
							
								
								
									
										20
									
								
								src/main/scala/coreplex/RocketPlex.scala
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/main/scala/coreplex/RocketPlex.scala
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | // See LICENSE.SiFive for license details. | ||||||
|  |  | ||||||
|  | package coreplex | ||||||
|  |  | ||||||
|  | import Chisel._ | ||||||
|  | import config.Parameters | ||||||
|  |  | ||||||
|  | class RocketPlex(implicit p: Parameters) extends BaseCoreplex | ||||||
|  |     with CoreplexRISCVPlatform | ||||||
|  |     with HasRocketTiles { | ||||||
|  |   override lazy val module = new RocketPlexModule(this, () => new RocketPlexBundle(this)) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | class RocketPlexBundle[+L <: RocketPlex](_outer: L) extends BaseCoreplexBundle(_outer) | ||||||
|  |     with CoreplexRISCVPlatformBundle | ||||||
|  |     with HasRocketTilesBundle | ||||||
|  |  | ||||||
|  | class RocketPlexModule[+L <: RocketPlex, +B <: RocketPlexBundle[L]](_outer: L, _io: () => B) extends BaseCoreplexModule(_outer, _io) | ||||||
|  |     with CoreplexRISCVPlatformModule | ||||||
|  |     with HasRocketTilesModule | ||||||
| @@ -3,17 +3,13 @@ | |||||||
| package rocketchip | package rocketchip | ||||||
|  |  | ||||||
| import Chisel._ | import Chisel._ | ||||||
| import config._ | import coreplex.RocketPlex | ||||||
| import diplomacy._ | import diplomacy.LazyModule | ||||||
| import uncore.tilelink2._ |  | ||||||
| import uncore.devices._ |  | ||||||
| import util._ |  | ||||||
| import coreplex._ |  | ||||||
|  |  | ||||||
| trait RocketPlexMaster extends HasTopLevelNetworks { | trait RocketPlexMaster extends HasTopLevelNetworks { | ||||||
|   val module: RocketPlexMasterModule |   val module: RocketPlexMasterModule | ||||||
|  |  | ||||||
|   val coreplex = LazyModule(new DefaultCoreplex) |   val coreplex = LazyModule(new RocketPlex) | ||||||
|  |  | ||||||
|   coreplex.l2in :=* fsb.node |   coreplex.l2in :=* fsb.node | ||||||
|   bsb.node :*= coreplex.l2out |   bsb.node :*= coreplex.l2out | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user