diff options
| author | bd <bdunahu@operationnull.com> | 2025-03-26 12:21:52 -0400 | 
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-03-26 12:21:52 -0400 | 
| commit | b81c86b438123457be86af2e7c24375856afa742 (patch) | |
| tree | 74f271585bce27de2434d8cd826fee09f6a71738 /tests/controller.cc | |
| parent | 9eeea1ab8bf4eb17e5da46d57a6c1d455a0a262e (diff) | |
Add fetch stage implementation, tests, program loading, DTO object
Diffstat (limited to 'tests/controller.cc')
| -rw-r--r-- | tests/controller.cc | 14 | 
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/controller.cc b/tests/controller.cc index a1b8123..a2f8e7d 100644 --- a/tests/controller.cc +++ b/tests/controller.cc @@ -1,6 +1,11 @@  #include "controller.h"  #include "cache.h"  #include "dram.h" +#include "ex.h" +#include "id.h" +#include "if.h" +#include "mm.h" +#include "wb.h"  #include <algorithm>  #include <catch2/catch_test_macros.hpp> @@ -10,7 +15,14 @@ class ControllerPipeFixture  	ControllerPipeFixture()  	{  		this->c = new Cache(new Dram(3), 1); -		this->ct = new Controller(this->c, true); + +		IF *f = new IF(nullptr); +		ID *d = new ID(f); +		EX *e = new EX(d); +		MM *m = new MM(e); +		WB *w = new WB(m); + +		this->ct = new Controller(w, this->c, true);  	}  	~ControllerPipeFixture()  	{  | 
