Update Map.bsv

Remove unused function.
This commit is contained in:
Jonathan Woodruff
2021-03-22 20:28:34 +00:00
committed by GitHub
parent d351eeee11
commit 2bfe25dfad

View File

@@ -33,14 +33,6 @@
import RegFile::*;
function inT poorMansMod(inT val, Integer i)
provisos (Bits#(inT, inW));
Bit#(inW) mask = ~((~0) << log2(i));
Bit#(inW) low = pack(val) & mask;
Bit#(inW) max = fromInteger(i);
return unpack(pack(val) & (mask >> ((low < max) ? 0:1)));
endfunction
interface Map#(type i, type k, type v);
method Action update(Tuple2#(k,i) key, v value);
method Maybe#(v) lookup(Tuple2#(k,i) lookup_key);