summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intersim2/interconnect_interface.cpp6
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 ?