Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: [libre-riscv-dev] popcount and parity
Date: Wed, 13 May 2020 23:20:16 +0100
Message-ID: <CAPweEDwz54BtCmw+anXZ4EKqHpi9xpUpEOajdJfUbcYAzPdM3w@mail.gmail.com> (raw)

jacob would you like to do popcount and parity, i remember you
mentioned a "best work" algorithm somewhere (referenced a wikipedia
page)? it resonated with me that it might be nice to add a general
class (of some kind) to nmutil for use in doing things like... ooo....
popcount.

here's where the two functions are in microwatt, feel free to use this
as a guide:
https://github.com/antonblanchard/microwatt/blob/master/logical.vhdl

and here's where they need to go in the logical pipeline:
https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/logical/main_stage.py;h=622216bbf5c8d9f80e1ad04f0903f5b27e0f7102;hb=HEAD#l41

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

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAPweEDwz54BtCmw+anXZ4EKqHpi9xpUpEOajdJfUbcYAzPdM3w@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