add PLRU replacement option to L2 cache
This commit is contained in:
		| @@ -261,10 +261,16 @@ class WithL2Cache extends Config( | ||||
|         case CacheName => "L2Bank" | ||||
|         case InnerTLId => "L1toL2" | ||||
|         case OuterTLId => "L2toMC"}))) | ||||
|     case L2Replacer => () => new SeqRandom(site(NWays)) | ||||
|   }, | ||||
|   knobValues = { case "L2_WAYS" => 8; case "L2_CAPACITY_IN_KB" => 2048 } | ||||
| ) | ||||
|  | ||||
| class WithPLRU extends Config( | ||||
|   (pname, site, here) => pname match { | ||||
|     case L2Replacer => () => new SeqPLRU(site(NSets), site(NWays)) | ||||
|   }) | ||||
|  | ||||
| class WithL2Capacity2048 extends Config(knobValues = { case "L2_CAPACITY_IN_KB" => 2048 }) | ||||
| class WithL2Capacity1024 extends Config(knobValues = { case "L2_CAPACITY_IN_KB" => 1024 }) | ||||
| class WithL2Capacity512 extends Config(knobValues = { case "L2_CAPACITY_IN_KB" => 512 }) | ||||
| @@ -281,6 +287,8 @@ class DefaultL2VLSIConfig extends Config(new WithL2Cache ++ new DefaultVLSIConfi | ||||
| class DefaultL2CPPConfig extends Config(new WithL2Cache ++ new DefaultCPPConfig) | ||||
| class DefaultL2FPGAConfig extends Config(new WithL2Capacity64 ++ new WithL2Cache ++ new DefaultFPGAConfig) | ||||
|  | ||||
| class PLRUL2Config extends Config(new WithPLRU ++ new DefaultL2Config) | ||||
|  | ||||
| class WithZscale extends Config( | ||||
|   (pname,site,here) => pname match { | ||||
|     case XLen => 32 | ||||
|   | ||||
							
								
								
									
										2
									
								
								uncore
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								uncore
									
									
									
									
									
								
							 Submodule uncore updated: ab8a6614f5...f9eda0ebb0
									
								
							
		Reference in New Issue
	
	Block a user