summaryrefslogtreecommitdiff
path: root/tests/cache_2_1.cc
blob: 101c6c39e804dcc061842fa4a80d90332ff105c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "c11.h"
#include "cache.h"
#include "dram.h"
#include "storage.h"
#include <catch2/catch_test_macros.hpp>

/**
 * one way associative, two level
 */
class C21 : public C11
{
  public:
	C21() : C11()
	{
		Storage *s;

		s = new Dram(this->m_delay);
		s = new Cache(s, 5, this->c_delay);
		this->c = new Cache(s, 7, this->c_delay);
	}
};