Tesi Robotica Analisi, progettazione e implementazione... | Page 142
i
i
“LP_Tesi” — 2013/10/17 — 18:27 — page 142 — #142
i
142
Figura 6.2.1: Relazione tra rule e celle:
i
6. SECONDA RELEASE
r1,
r2,
r3,
r4,
r5,
rlast
sia finito, ovvero quando il valore del registro fin è andato a 1, registro che
viene resettato al valore 0 una volta che ha terminato il suo compito. Il metodo
reqDir invece va a fare una richiesta di scrittura nella BRAM cache.
Algoritmo 6.15 Metodi di Scoring
1
2
3
4
method Action put(Pixel l, Pixel r) ;
delta .enq(bound − extend(absSub(l.red,r.red))−extend(absSub(l.green,r.green))
−extend(absSub(l.blue,r.blue)));
en.enq(1);
endmethod
5
6
7
8
9
method ActionValue#(Bit#(1)) finish() if(step==0 && fin==1);
fin <=0;
return fin ;
endmethod
10
11
method BRAMRequest#(BitF, Direction) reqDir() if(isValid(req.wget)) =
fromMaybe (?, req.wget());
i
i
i
i