Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: bugzilla-daemon@libre-riscv.org
To: libre-riscv-dev@lists.libre-riscv.org
Subject: [libre-riscv-dev] [Bug 271] SigDecode in power_fields has extra spurious fields
Date: Mon, 30 Mar 2020 15:09:21 +0000
Message-ID: <bug-271-13-fvecNthFng@http.bugs.libre-riscv.org/> (raw)
In-Reply-To: <bug-271-13@http.bugs.libre-riscv.org/>

http://bugs.libre-riscv.org/show_bug.cgi?id=271

--- Comment #8 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
(In reply to Michael Nolan from comment #7)
> Ok, I've got it sort of working in df295b5. I removed TopPowerDecoder's
> inheritance of DecodeFields and moved DecodeFields to a member. I then had
> TopPowerDecoder go through each of the "common" fields in DecodeFields and
> copy it to a signal. 

great.

> This works, but it doesn't take care of the form
> specific fields (e.g. dec.FormXL.XO[9]), and I'm not sure what to do with
> those. I suppose I could add in submodules for each of the forms and copy
> their signals like I did with the common ones, would that work for you?

submodules is unnecessary (and a bit overkill): an object that is a dummy class
would do (similar to the use of NamedTuple)

class Form:
    pass

or, actually, just a NamedTuple again.  hmm take a look see what you
think

commit 5374cb82b

_should_ be accessible as

comb += something.eq(decoder.FormX.RA)

which becomes important in the autogenerator code because each instruction
is listed as having a "Form", and we can drop the decoder.Form{something}
into its context, and the pseudo-code fragment will go "oh, i recognise
these variables RA, RT etc. as being from Form{something}"

-- 
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: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-29 14:50 [libre-riscv-dev] [Bug 271] New: " bugzilla-daemon
2020-03-29 17:54 ` [libre-riscv-dev] [Bug 271] " bugzilla-daemon
2020-03-29 18:11 ` bugzilla-daemon
2020-03-29 20:57 ` bugzilla-daemon
2020-03-29 23:15 ` bugzilla-daemon
2020-03-30  9:06 ` bugzilla-daemon
2020-03-30 13:01 ` bugzilla-daemon
2020-03-30 14:11 ` bugzilla-daemon
2020-03-30 15:09 ` bugzilla-daemon [this message]
2020-03-30 16:56 ` bugzilla-daemon
2020-03-30 17:05 ` bugzilla-daemon
2020-03-30 18:03 ` bugzilla-daemon
2020-03-30 18:03 ` 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-271-13-fvecNthFng@http.bugs.libre-riscv.org/ \
    --to=bugzilla-daemon@libre-riscv.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