Hardware interview practice
Transaction handle reuse
A monitor allocates tr once, updates it each cycle, and calls ap.write(tr). A scoreboard pushes each received handle into a queue. Later every queue entry shows the last sampled values. What is the best explanation and repair?
Choose one
Answer choices
- A. Analysis ports deep-copy only integral fields; add field macros
- B. The queue must be declared static
- C. Every queue entry aliases the same object; allocate a new transaction per publication or publish/store a clone
- D. The scoreboard should lower its verbosity before reading the queue
