comparison modules/bluespec/Pygar/lab4/BRegFile.bsv @ 59:92041177735c pygar svn.60

[svn r60] LUTRAMing
author punk
date Mon, 10 May 2010 13:50:40 -0400
parents 52f9a257c2ba
children 6179c07c21d7
comparison
equal deleted inserted replaced
58:52f9a257c2ba 59:92041177735c
20 provisos (Bits#(index_t, size_index), 20 provisos (Bits#(index_t, size_index),
21 Bits#(data_t, size_data), 21 Bits#(data_t, size_data),
22 Eq#(index_t), 22 Eq#(index_t),
23 Bounded#(index_t) ); 23 Bounded#(index_t) );
24 24
25 LUTRAM#(index_t, data_t) rf <- mkLUTRAM_RegFile(); 25 LUTRAM#(index_t, data_t) rf <- mkLUTRAMU_RegFile();
26 RWire#(Tuple2#(index_t, data_t)) rw <-mkRWire(); 26 RWire#(Tuple2#(index_t, data_t)) rw <-mkRWire();
27 27
28 method Action upd (index_t r, data_t d); 28 method Action upd (index_t r, data_t d);
29 rf.upd(r,d); 29 rf.upd(r,d);
30 rw.wset(tuple2(r,d)); 30 rw.wset(tuple2(r,d));