Compare commits
	
		
			3 Commits
		
	
	
		
			4ba8acb4aa
			...
			8710fe9561
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8710fe9561 | |||
| 81d631a6a1 | |||
| 6df42fc360 | 
| @@ -23,9 +23,6 @@ module {name}( | ||||
|   reg [{output_width_minus_1}:0] rom [0:{depth_minus_1}]; | ||||
|  | ||||
|  | ||||
|   // 1024 is the maximum length of $readmemh filename supported by Cadence Incisive | ||||
|   reg [1024 * 8 - 1:0] path; | ||||
|  | ||||
|   integer i; | ||||
|   initial begin | ||||
| `ifdef RANDOMIZE | ||||
| @@ -35,10 +32,7 @@ module {name}( | ||||
|     end | ||||
|   `endif | ||||
| `endif | ||||
|     if (!$value$plusargs("maskromhex=%s", path)) begin | ||||
|       path = "{rom_hex_file}"; | ||||
|     end | ||||
|     $readmemh(path, rom); | ||||
|     $readmemh("{rom_hex_file}", rom); | ||||
|   end | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -50,6 +50,28 @@ class WithNBigCores(n: Int) extends Config((site, here, up) => { | ||||
|   } | ||||
| }) | ||||
|  | ||||
| class WithNSmallLinuxCores(n: Int) extends Config((site, here, up) => { | ||||
|   case RocketTilesKey => { | ||||
|     val small = RocketTileParams( | ||||
|       core = RocketCoreParams(), | ||||
|       btb = None, | ||||
|       dcache = Some(DCacheParams( | ||||
|         rowBits = site(SystemBusKey).beatBits, | ||||
|         nSets = 64, | ||||
|         nWays = 1, | ||||
|         nTLBEntries = 4, | ||||
|         nMSHRs = 0, | ||||
|         blockBytes = site(CacheBlockBytes))), | ||||
|       icache = Some(ICacheParams( | ||||
|         rowBits = site(SystemBusKey).beatBits, | ||||
|         nSets = 64, | ||||
|         nWays = 1, | ||||
|         nTLBEntries = 4, | ||||
|         blockBytes = site(CacheBlockBytes)))) | ||||
|     List.tabulate(n)(i => small.copy(hartId = i)) | ||||
|   } | ||||
| }) | ||||
|  | ||||
| class WithNSmallCores(n: Int) extends Config((site, here, up) => { | ||||
|   case RocketTilesKey => { | ||||
|     val small = RocketTileParams( | ||||
| @@ -208,6 +230,14 @@ class WithRoccExample extends Config((site, here, up) => { | ||||
|     } | ||||
| }) | ||||
|  | ||||
| class WithClockFrequency(frequency: BigInt) extends Config((site, here, up) => { | ||||
|   case RocketTilesKey => up(RocketTilesKey, site) map { r => | ||||
|     r.copy(core = r.core.copy(bootFreqHz = frequency)) | ||||
|   } | ||||
|   case PeripheryBusKey => up(PeripheryBusKey, site) | ||||
|     .copy(frequency = frequency) | ||||
| }) | ||||
|  | ||||
| class WithDefaultBtb extends Config((site, here, up) => { | ||||
|   case RocketTilesKey => up(RocketTilesKey, site) map { r => | ||||
|     r.copy(btb = Some(BTBParams())) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user