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] nmutil failing tests due to attribute errors
Date: Wed, 25 Mar 2020 16:13:19 +0000
Message-ID: <CAPweEDzLArv-M2gdUMBYfsZfKPZGvgD9x66M2Vd8=2SSonQNCQ@mail.gmail.com> (raw)
In-Reply-To: <067FEFA4-E343-49D5-B131-29E41DC9F622@getmailspring.com>

On Wed, Mar 25, 2020 at 4:00 PM Cole Poirier <colepoirier@gmail.com> wrote:
>
> Hi Libre-SOC team,
>
> I think I completed HDL workflow sucessfully yesterday, however when I
> try to run "python3 setup.py test" in nmutil I get 33 errors.
> Adhering to the rule of not pasting large amounts of autogenerated
> output, I will only include two examples in this first email, but I can
> provide more details should you need them to help me. Can you please
> advise me as to what I've done wrong or misconfigured?
>
> ###
> ERROR: nmutil.test.test_outmux_pipe.test1
> AttributeError: 'Queue' object has no attribute 'we'

do a "git pull", i fixed this.  i thought i'd sorted it a few days ago
however that was in Queue itself, not singlepipe.py

> ERROR: nmutil.test.test_inout_unary_mux_cancel_pipe.test1
> AttributeError: 'TestInOutPipe' object has no attribute 'domains'

err.... err....

that works here, for me... and i think i know why.  it's because i
keep (temporarily) adding this to nmigen:

diff --git a/nmigen/compat/sim/__init__.py b/nmigen/compat/sim/__init__.py
index c6a89e3..42f6fd6 100644
--- a/nmigen/compat/sim/__init__.py
+++ b/nmigen/compat/sim/__init__.py
@@ -19,7 +19,7 @@ def run_simulation(fragment_or_module, generators,
clocks={"sync": 10}, vcd_name

     if not isinstance(generators, dict):
         generators = {"sync": generators}
-        fragment.domains += ClockDomain("sync")
+        #fragment.domains += ClockDomain("sync")

     sim = Simulator(fragment)
     for domain, period in clocks.items():

add that one line and it'll work.

l.

_______________________________________________
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: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-25 16:00 Cole Poirier
2020-03-25 16:13 ` Luke Kenneth Casson Leighton [this message]
2020-03-25 17:03   ` Cole Poirier

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='CAPweEDzLArv-M2gdUMBYfsZfKPZGvgD9x66M2Vd8=2SSonQNCQ@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