Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: bugzilla-daemon@libre-soc.org
To: libre-riscv-dev@lists.libre-riscv.org
Subject: [libre-riscv-dev] [Bug 323] create POWER9 MUL pipeline
Date: Wed, 27 May 2020 22:21:25 +0000
Message-ID: <bug-323-13-dt2Ksu4e0a@https.bugs.libre-soc.org/> (raw)
In-Reply-To: <bug-323-13@https.bugs.libre-soc.org/>

https://bugs.libre-soc.org/show_bug.cgi?id=323

--- Comment #3 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
from microwatt: how to set up the inputs to the mul pipeline.  this can go in
main_stage.py when calling the mul unit:



if e_in.is_32bit = '1' then
    if e_in.is_signed = '1' then
        x_to_multiply.data1 <= (others => a_in(31));
        x_to_multiply.data1(31 downto 0) <= a_in(31 downto 0);
        x_to_multiply.data2 <= (others => b_in(31));
        x_to_multiply.data2(31 downto 0) <= b_in(31 downto 0);
    else
        x_to_multiply.data1 <= '0' & x"00000000" & a_in(31 downto 0);
        x_to_multiply.data2 <= '0' & x"00000000" & b_in(31 downto 0);
else
    if e_in.is_signed = '1' then
        x_to_multiply.data1 <= a_in(63) & a_in;
        x_to_multiply.data2 <= b_in(63) & b_in;
    else
        x_to_multiply.data1 <= '0' & a_in;
        x_to_multiply.data2 <= '0' & b_in;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

      parent reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 12:01 [libre-riscv-dev] [Bug 323] New: " bugzilla-daemon
2020-05-19 12:02 ` [libre-riscv-dev] [Bug 323] " bugzilla-daemon
2020-05-19 12:24 ` bugzilla-daemon
2020-05-20  0:35 ` bugzilla-daemon
2020-05-27 22:21 ` bugzilla-daemon [this message]

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=bug-323-13-dt2Ksu4e0a@https.bugs.libre-soc.org/ \
    --to=bugzilla-daemon@libre-soc.org \
    --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