question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No array recognition

See original GitHub issue

I’m using Icarus verilog 0.9.7 on Ubuntu, and I can’t access or view a multiple dimension array. Here is an adder modified example.

// Adder DUT
module adder #(
    parameter   DATA_WIDTH = 4
) (
    input      [DATA_WIDTH-1:0] A,
    input      [DATA_WIDTH-1:0] B,
    output reg [DATA_WIDTH:0] X
    );
    
  reg [DATA_WIDTH-1:0] J [1:0];
    
  always @(A or B) begin
    X <= A + B;
    J[1] <= A; J[0] <= B;
  end

endmodule

# Simple tests for an adder module
import cocotb
from cocotb.triggers import Timer

@cocotb.test()
def adder_basic_test(dut):
    """Test for 5 + 10"""
    yield Timer(2)
    dut.A = 5
    dut.B = 2

    yield Timer(2)

    #cocotb.log.info(dut.J[0])
    dut.J[0] = 2;
    #print (dut.J)
#any of these 3 intructions fails

and I get the following error:

Send raised exception: adder contains no object named J File “/cocotb/decorators.py", line 212, in send return self._coro.send(value) File "/examples/adder/tests/test_adder.py”, line 14, in adder_basic_test dut.J[0] = 2; File “***/cocotb/handle.py”, line 289, in getattr raise AttributeError(“%s contains no object named %s” % (self._name, name))

5000000000.00ns ERROR cocotb.regression regression.py:286 in handle_result Test Failed: adder_basic_test (result was TestError) 5000000000.00ns ERROR cocotb.regression regression.py:196 in tear_down Failed 1 out of 1 tests (0 skipped)

Any help would be appreciated

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
stuarthodgsoncommented, Apr 14, 2018

I seem to remember this being and issue with Icarus, can you try the latest master or Icarus?

0reactions
stuarthodgsoncommented, Oct 28, 2018

That output above it from cocotb. Support for different types is dependent on the simulator, the open sources ones do not provide as much coverage as the aid for ones unfortunately. I’m inclined to close this as I don’t believe at the moment the issue is related to cocotb. If you try this on modelsim (also free, well at one time) and see the same issue then please re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No array recognition · Issue #609 · cocotb/cocotb - GitHub
I'm using Icarus verilog 0.9.7 on Ubuntu, and I can't access or view a multiple dimension array. Here is an adder modified example....
Read more >
SpeechRecognitionResultList - Web APIs - MDN Web Docs
Returns the length of the "array" — the number of SpeechRecognitionResult objects in the list. Instance methods. SpeechRecognitionResultList.item. A standard ...
Read more >
In array,How I can make recognition between elements that ...
1 Answer 1 ... I'm not sure I get what your are trying to do, but you if you are sure your array...
Read more >
Establishing a limit of recognition for a vapor sensor array
In this study, the performance of an array of four polymer-coated surface acoustic wave vapor sensors was explored using calibrated response data from...
Read more >
Activity recognition using low resolution infrared array sensor
In this paper, we propose an activity recognition method using a low resolution infrared array sensor. This sensor can detect temperature on a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found