[libre-riscv-dev] Wish to work on

Jacob Lifshay programmerjake at gmail.com
Mon Mar 25 17:35:39 GMT 2019


On Mon, Mar 25, 2019, 03:33 Luke Kenneth Casson Leighton <lkcl at lkcl.net>
wrote:

> ---
> crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
>
> On Mon, Mar 25, 2019 at 10:21 AM Rishabh Jain <rishucoding at gmail.com>
> wrote:
> >
> > I think, the table got messed up!
> > Here's the table in plain text.
> > I3   I2   I1   I0 | O1  O0  V
> > 0    0    0    0  |  x    x    0
> > x    x    x    1  |  0    0    1
> > x    x    1    0  |  0    1    1
> > x    1    0    0  |  1    0    1
> > 1    0    0    0  |  1    1    1
>
> that looks pretty much exactly like the output of a PriorityEncoder to me
> https://github.com/m-labs/nmigen/blob/master/nmigen/lib/coding.py#L51

do note that PriorityEncoder's truth table is like this:
i[3] i[2] i[1] i[0] | o[1] o[0] n
0    0    0    0    | 0    0    1
0    0    0    1    | 0    0    0
0    0    1    x    | 0    1    0
0    1    x    x    | 1    0    0
1    x    x    x    | 1    1    0

Jacob


More information about the libre-riscv-dev mailing list