connecting components in controller

commandbus changing state when scheduling commands
added some tests
This commit is contained in:
Janik Schlemminger
2014-03-14 16:35:44 -07:00
parent 7b64552047
commit dacaec7f11
27 changed files with 272 additions and 78 deletions

View File

@@ -23,14 +23,14 @@ namespace controller {
class CommandBusTest: public Test
{
public:
CommandBusTest() : config(), state(config.numberOfBanks), bus(config, state), clk(config.Timings.clk){}
CommandBusTest() : config(), state(config.numberOfBanks), bus(config, state, checker), clk(config.Timings.clk){}
Configuration config;
ControllerState state;
CommandBus bus;
std::vector<ICommandChecker*> checker;
sc_time clk;
};
TEST_F(CommandBusTest, cleanUpBusWorks)