nkanderson / ECE585-llc

Simulation of a last level cache (LLC) for ECE 585 final project
1 stars 0 forks source link

Add address parser function for snoop result #47

Closed nkanderson closed 4 days ago

nkanderson commented 6 days ago

Related to #36, we need to simulate the return of snoop results from other caches, following a specific procedure based on the address referenced in the bus op. Specifications are below. We can add this as a helper or utility function that parses the address and returns the snoop result. GetSnoopResult can then call the helper function.

Specific requirement / clarification from Mark:

For the GetSnoopResult function, use the two least significant bits of the address as follows to determine the simulated snoop result: "---00= HIT, ---01 = HitM ---10 or ---11 = NoHit"

nkanderson commented 4 days ago

Closed by #50