09.08.2013 Views

BlueSpec - Computation Structures Group - MIT

BlueSpec - Computation Structures Group - MIT

BlueSpec - Computation Structures Group - MIT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simple example with<br />

concurrency and shared resources<br />

cond0 cond1 cond2<br />

0 +1 -1 1 +1 -1 2<br />

x y<br />

Process 0: increments register x when cond0<br />

Process 1: transfers a unit from register x to<br />

register y when cond1<br />

Process 2: decrements register y when cond2<br />

Each register can only be updated by one process<br />

on each clock. Priority: 2 > 1 > 0<br />

Just like real applications, e.g.:<br />

Packet arrives, is processed, departs<br />

Process priority: 2 > 1 > 0<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!