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 310] Function Units to cover multiple tasks
Date: Thu, 14 May 2020 14:59:21 +0000
Message-ID: <bug-310-13-DSvYAtH6bO@https.bugs.libre-soc.org/> (raw)
In-Reply-To: <bug-310-13@https.bugs.libre-soc.org/>

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

--- Comment #2 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
(In reply to Michael Nolan from comment #1)
> On 5/14/20 10:43 AM, Luke Kenneth Casson Leighton wrote:
> > a good example would be AND and OR and XOR: those are prime candidates
> > to put into *both* the Logical *and* Arithmetic pipelines.  recorded
> > it for now:
> > https://bugs.libre-soc.org/show_bug.cgi?id=310
> 
> 
> So this is sort of like what intel has on their processors. More complicated
> instructions can only execute on one port, but simple and frequently used
> ones can run on several.

yees, exaaactly :)

the Function Unit tracking (array of input latches plus corresponding
output latches) are there not just to be the front-ends to multiple
parallel copies of simple operations: they're there in case the complicated
ones start backing up.

an in-order processor is forced to stall if the complicated pipelines take
too long.  even in microwatt, you can see "if operation == MUL or DIV, stall".

we can continue shoving out simple operations into *multiple* Function Units,
some of those, the ones that do not depend on the output of the
complicated instructions, can actually begin execution immediately.

however for the ones that *do* depend on the complicated ones we *continue
to shove them into Function Unit buffers/latches*.

the more FU latches available, the more we can "run ahead".

only when there is no FU latch available, *only then* does execution stall.


the problem comes if an FU Group has multiple functions, some of which can
cause blockage, some which do not.  if that FU Group gets blocked and entirely
full (all FU register latches "waiting"), the next operation *will* cause
an execution stall.

to solve that: all you do is... make it possible for *another* FU Group
to do the exact same operation.

for simple operations this is perfectly fine.

this is why in an early iteration of LD/ST Comp Unit, it was capable of
performing ADD *and* it was capable of doing LD/ST.  however POWER9 ADD
is a little more complex than just "ADD", so it wasn't appropriate to
add the carry-in/carry-out/ov/so to LD/ST Comp Unit just for that.

-- 
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-14 14:37 [libre-riscv-dev] [Bug 310] New: " bugzilla-daemon
2020-05-14 14:37 ` [libre-riscv-dev] [Bug 310] " bugzilla-daemon
2020-05-14 14:47 ` bugzilla-daemon
2020-05-14 14:59 ` bugzilla-daemon [this message]
2020-05-29 13:42 ` bugzilla-daemon

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-310-13-DSvYAtH6bO@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