bespoke-silicon-group / bsg_replicant

BSG Replicant: Cosimulation and Emulation Infrastructure for HammerBlade
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

Adding atomic packet example #808

Closed dpetrisko closed 1 year ago

dpetrisko commented 2 years ago

This PR adds the ability to do AMO.ADDs from host to manycore DRAM space. This can be useful for synchronization between host and device

Question: Is there a low-overhead function to detect that an NPA is a DRAM address? Would like to add the check to amoadd because I believe sending an AMOADD to a vcore tile could cause a hang.

mrutt92 commented 1 year ago

Check in some of the config headers. Grepping for "is_dram" should turn something up.

dpetrisko commented 1 year ago

Check in some of the config headers. Grepping for "is_dram" should turn something up.

Found it, thanks!