Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
* [libre-riscv-dev] nmutil failing tests due to attribute errors
@ 2020-03-25 16:00 Cole Poirier
  2020-03-25 16:13 ` Luke Kenneth Casson Leighton
  0 siblings, 1 reply; 3+ messages in thread
From: Cole Poirier @ 2020-03-25 16:00 UTC (permalink / raw)
  To: libre-riscv-dev

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'

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

Thanks,

Cole

_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [libre-riscv-dev] nmutil failing tests due to attribute errors
  2020-03-25 16:00 [libre-riscv-dev] nmutil failing tests due to attribute errors Cole Poirier
@ 2020-03-25 16:13 ` Luke Kenneth Casson Leighton
  2020-03-25 17:03   ` Cole Poirier
  0 siblings, 1 reply; 3+ messages in thread
From: Luke Kenneth Casson Leighton @ 2020-03-25 16:13 UTC (permalink / raw)
  To: Libre-RISCV General Development

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [libre-riscv-dev] nmutil failing tests due to attribute errors
  2020-03-25 16:13 ` Luke Kenneth Casson Leighton
@ 2020-03-25 17:03   ` Cole Poirier
  0 siblings, 0 replies; 3+ messages in thread
From: Cole Poirier @ 2020-03-25 17:03 UTC (permalink / raw)
  To: Libre-RISCV General Development; +Cc: Libre-RISCV General Development

On Mar 25 2020, at 9:13 am, Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> 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.


Woohoo!! Thanks that worked perfectly!

Cole

_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 16:00 [libre-riscv-dev] nmutil failing tests due to attribute errors Cole Poirier
2020-03-25 16:13 ` Luke Kenneth Casson Leighton
2020-03-25 17:03   ` Cole Poirier

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