* [libre-riscv-dev] priority picker
@ 2020-03-17 21:51 Luke Kenneth Casson Leighton
0 siblings, 0 replies; only message in thread
From: Luke Kenneth Casson Leighton @ 2020-03-17 21:51 UTC (permalink / raw)
To: Libre-RISCV General Development
https://git.libre-riscv.org/?p=nmutil.git;a=blob;f=src/nmutil/picker.py;h=0e50fd24f1131cb40ff306030f0dcfb107d0c22e;hb=a6130a92485d572182ab80a2da279997388ef52e#l64
i just created something called "MultiPriorityPicker" which is quite cute.
PriorityPicker is an important "selector" of which (unary-encoded). This is
used to select which Function Unit's output will get access to a given register
file port, for example.
Except... what happens if we have multiple register file ports? (which we do)
Err... who gets access to which port?
that's what the MultiPriorityPicker is for. basically it is an array
of PriorityPickers (see
https://libre-riscv.org/3d_gpu/architecture/6600scoreboard/)
the PriorityPickers are connected in a cascade, where the output of
each *accumulates* a mask that *prevents* downstream PriorityPickers
from picking already-picked outputs.
in addition, in order to help select a particular "port", an index
(currently in binary, i may change that to unary later) is set - again
in an incrementing cascade - such that whichever Picker's output has a
"1" set it is *guaranteed* to also be allocated a unique "index" as
well.
this "index" can be used to say which "port" on the register file, for
example, that the "Picker" is permitted to write (or read) from.
it also has uses for the LOAD/STORE buffer: namely the
Load/Store-FunctionUnit's have to know which "port" to write into the
(multi-input) LD/ST Buffer (aka cache).
all good fun.
l.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 21:51 [libre-riscv-dev] priority picker Luke Kenneth Casson Leighton
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git