diff options
| author | Mahmoud <[email protected]> | 2017-07-18 17:35:20 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2017-07-18 17:35:20 -0400 |
| commit | b664037b0b06ee30a5070d1a440c3d48420f0c4d (patch) | |
| tree | 50427e093448e5289f6755756e751e79d8092398 /src/intersim2/interconnect_interface.cpp | |
| parent | 86a344a721b3215da894794675bd709da79e44db (diff) | |
Interconnection assertion failing demysstifying
Diffstat (limited to 'src/intersim2/interconnect_interface.cpp')
| -rw-r--r-- | src/intersim2/interconnect_interface.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intersim2/interconnect_interface.cpp b/src/intersim2/interconnect_interface.cpp index 456b757..b397aad 100644 --- a/src/intersim2/interconnect_interface.cpp +++ b/src/intersim2/interconnect_interface.cpp @@ -187,7 +187,11 @@ void InterconnectInterface::Push(unsigned input_deviceID, unsigned output_device case WRITE_REQUEST: packet_type = Flit::WRITE_REQUEST ;break; case READ_REPLY: packet_type = Flit::READ_REPLY ;break; case WRITE_ACK: packet_type = Flit::WRITE_REPLY ;break; - default: assert (0); + default: + { + cout<<"Type "<<mf->get_type()<<" is undefined!"<<endl; + assert (0 && "Type is undefined"); + } } //TODO: _include_queuing ? |
