From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] priority encoder replacement
Date: Tue, 19 May 2020 19:46:58 +0100
Message-ID: <CAPweEDyG5hrocmQa4NToO-+2+0mNSBnTj2ZvLB_QiP0iOkrMVw@mail.gmail.com> (raw)
In-Reply-To: <CAC2bXD7L50z=L7grJ4U=Kewyqi3ix7z-f5L7eb7AgBna_Nxm8w@mail.gmail.com>
On Tuesday, May 19, 2020, Jacob Lifshay <programmerjake@gmail.com> wrote:
>
>
> If clz is strictly better, replace PriorityEncoder with clz, or just change
> clz to match PriorityEncoder's interface and rename it PriorityEncoder,
> deleting the old one.
it does have some subtle differences, PE sets a flag when the input is
entirely zero.
i do not believe there is an offbyone. PE will set its output to 0 if bit
0 is 1. output is 1 if input is 0bxxx10 which is pretty much the
definition of CLZ.
l.
--
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
next prev parent reply index
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 11:59 [libre-riscv-dev] daily kan-ban update 19may2020 Luke Kenneth Casson Leighton
2020-05-19 12:36 ` Luke Kenneth Casson Leighton
2020-05-19 16:38 ` Cesar Strauss
2020-05-19 17:13 ` Jacob Lifshay
2020-05-19 17:34 ` Luke Kenneth Casson Leighton
2020-05-19 17:47 ` Michael Nolan
2020-05-19 17:56 ` Luke Kenneth Casson Leighton
2020-05-19 18:01 ` [libre-riscv-dev] priority encoder replacement Jacob Lifshay
2020-05-19 18:46 ` Luke Kenneth Casson Leighton [this message]
2020-05-19 20:17 ` [libre-riscv-dev] daily kan-ban update 19may2020 Cole Poirier
2020-05-20 6:39 ` Tobias Platen
2020-05-20 11:28 ` Luke Kenneth Casson Leighton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPweEDyG5hrocmQa4NToO-+2+0mNSBnTj2ZvLB_QiP0iOkrMVw@mail.gmail.com \
--to=lkcl@lkcl.net \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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