[gem5-users] Re: new SimObject fails to send a response packet due to crossbar issue

2024-07-16 Thread Khan Shaikhul Hadi via gem5-users
Hi, please check when coherent_xbar receive the request, before sending it downstream to your new object, the packet is expected to have response and not express snoop so that "bool expect_response = pkt->needsResponse() && ! pkt->cacheResponding();" this line set expect_response to zero which sh

[gem5-users] Re: new SimObject fails to send a response packet due to crossbar issue

2024-07-16 Thread Iliass Lasri via gem5-users
Hello Sam, Thanks for your response. Actually, I did exactly what you said pkt->makeTimingResponse(), and pkt->setData(&value). And when debugging I follow the packet and the attribute pkt->req don't change, so logically the crossbar should have the proper routing, but it's not the case. Do you

[gem5-users] Re: new SimObject fails to send a response packet due to crossbar issue

2024-07-16 Thread Samuel Thomas via gem5-users
Hi Iliass, This error typically happens when the XBar receives a packet that it didn’t send to the SimObject as a response. Are you making a new response packet? If so, try using the pkt->makeTimingResponse() function to send the received packet directly back to the XBar. Hopefully this helps.

[gem5-users] new SimObject fails to send a response packet due to crossbar issue

2024-07-16 Thread Iliass Lasri via gem5-users
Hello gem5 community, I created a new SimObject that does just like the memory, the object has a Response port when it recieves a read command it sends a ReadResponse, but when it arrives to the xbar, the xbar fails to route it, and the assersion in line 454 in coherent_xbar.cc _assert(route_l