Giter Club home page Giter Club logo

Comments (4)

figlesia-xilinx avatar figlesia-xilinx commented on July 3, 2024

Hi Felix,

L2694 looks to be able to be removed as you are saying above. The branch at L2663 looks to be needed since the SN rsp.Comp might arrive before the SN rsp.DBID at the interconnect (reordered, I'll verify this with the doc and comeback).

Best regards,
Francisco Iglesias

from libsystemctlm-soc.

gxflying avatar gxflying commented on July 3, 2024

thank for your reply, @figlesia-xilinx
I agree that the Comp may arrive before DBIDResp from SN, but when this situation accurs, the branch @ L2663 will never be true !
remind that the SetWriteToSnDone can only be called req->SetWriteToSNDone(true); @L2653, and to run to L2653 we need both of the below conditions are true :

  1. (rsp.IsCompDBIDResp() || rsp.IsDBIDResp()) @L2609 is true
  2. (rsp.IsCompDBIDResp() || req->GetCompSNReceived()) @ L2622 is true at the same time

acctrully the 2nd condition @ L2622 need the the Comp(seperate Comp or CompDBIDResp) had been reveived for it to be true

so there is a the contrdiction :

  1. if we want to run to L2653 which set the WritenToSNDone flag to true , we need Comp has received
  2. but WritenToSNDone flag is checked when process the seperate Comp from SN, at which time the WritenToSNDone flag can never be true , the reason is the 1st item above

so the whole branch if (req->GetWriteToSNDone()) @L2663 will never be true and is useless !
please help to clarify this

from libsystemctlm-soc.

gxflying avatar gxflying commented on July 3, 2024

I think that the condition checked in the branch @L2633 should be changed to : whether or not the DBIDResp has arrived
then if true, the branch will handle the scenario that the Comp is received after the DBIDResp

from libsystemctlm-soc.

figlesia-xilinx avatar figlesia-xilinx commented on July 3, 2024

Yes, above was the target of the 'else if' at line 2657. The SN-F doesn't yet support generating above response structure (so this path was not covered in the test it seems and needs to be corrected).

Best regards,
Francisco

from libsystemctlm-soc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.