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: Re: [libre-riscv-dev] daily kan-ban update 23may2020
Date: Sat, 23 May 2020 23:23:19 +0100
Message-ID: <CAPweEDwrtcvkzNXi7Q7tM1Fdx4-wALkBo0Hr+A+yxZj2qr_pFw@mail.gmail.com> (raw)
In-Reply-To: <A3B236A9-A469-4493-AE7E-0195E1F7F2CD@getmailspring.com>

---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68

On Sat, May 23, 2020 at 10:39 PM Cole Poirier <colepoirier@gmail.com> wrote:
>
> On May 23 2020, at 1:59 pm, Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> > soc.fu they are now common base classes.  the code is exactly the
> > same, it
> > is just split.
>
> I tried fixing this the naive way, by just substituting CommonInput
> stageStage for LogicalInputStage

why?

look at the class:

class LogicalInputStage(CommonInputStage):
    def __init__(self, pspec):
        super().__init__(pspec, "input")   <---- must be initialised
with an argument, "input"

    def ispec(self):
        return LogicalInputData(self.pspec)   <--- CommonInputStage
does not have this

    def ospec(self):
        return LogicalInputData(self.pspec)   <---- CommonInputStage
does not have this

    def elaborate(self, platform):
        m = super().elaborate(platform) # covers A-invert, carry, excludes SO
        comb = m.d.comb
        ctx = self.i.ctx

        # operand b
        comb += self.o.b.eq(self.i.b)    <----   CommonInputStage does
not do this

        return m

so what you are trying to do is guaranteed to fail, on four separate counts.

* no initialisation of CommonInputStage 1st parameter
* no ispec
* no ospec
* parameter B will not be copied over

so, don't do that.

l.

_______________________________________________
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: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-23 14:29 Luke Kenneth Casson Leighton
2020-05-23 14:56 ` Tobias Platen
2020-05-23 15:15   ` Luke Kenneth Casson Leighton
2020-05-23 20:15     ` Cole Poirier
2020-05-23 20:36       ` Michael Nolan
2020-05-23 20:59         ` Luke Kenneth Casson Leighton
2020-05-23 21:38           ` Cole Poirier
2020-05-23 22:15             ` Luke Kenneth Casson Leighton
2020-05-23 22:23             ` Luke Kenneth Casson Leighton [this message]
2020-05-23 20:57       ` Luke Kenneth Casson Leighton
2020-05-23 21:21         ` Cole Poirier
2020-05-23 22:08         ` Cesar Strauss
2020-05-23 22:14           ` Luke Kenneth Casson Leighton
2020-05-23 22:16             ` Luke Kenneth Casson Leighton
2020-05-23 22:16               ` Luke Kenneth Casson Leighton
2020-05-23 22:17                 ` Luke Kenneth Casson Leighton
2020-05-23 22:18                   ` Luke Kenneth Casson Leighton
2020-05-23 22:20                   ` Cole Poirier
2020-05-23 22:27                     ` Luke Kenneth Casson Leighton
2020-05-23 22:32                       ` Cole Poirier
2020-05-23 22:39                         ` Luke Kenneth Casson Leighton
2020-05-23 22:23             ` Cole Poirier
2020-05-23 22:36               ` Luke Kenneth Casson Leighton
2020-05-23 22:59                 ` Cole Poirier
2020-05-23 23:01                   ` 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=CAPweEDwrtcvkzNXi7Q7tM1Fdx4-wALkBo0Hr+A+yxZj2qr_pFw@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