SourceForge has been redesigned. Learn more.
Close

multidimention array

Help
jeff zhang
2012-11-08
2013-01-16
  • jeff zhang

    jeff zhang - 2012-11-08

    hi, systemverilog support packed array, such as
    reg  fred;
    sveditor currently report error. could you please fix this. thanks a lot.

     
  • Matthew Ballance

    Hello,
        Unfortunately, the example you provide works for me. Can you provide a more-complete example that shows the parse error? It should look something like:

       module m; // module or class
        reg   fred;
      endmodule

    Best Regards,
    Matthew

     
  • jeff zhang

    jeff zhang - 2012-11-11

    hi Matthew,

    i think i found the problem.

    In my code, it actually is
    wire  fred;

    once i change wire to reg or logic, then the error sign goes away.

    Hope you can replicate the problem i see. I can use "logic" to replace "wire" for now.

    Best regards
    jeff

     
  • Matthew Ballance

    Hi Jeff,
        Thanks for the clarification. I've checked a few cases, and the one case where I can get SVEditor to show a failure is when a wire-type variable is declared within a task/function context:

        class c;
            function void foo;
                wire  a;
            endfunction
        endclass

        Can you confirm this is the scenario you're seeing?
        What simulator are you using? I'm using Mentor Questa, which flags this scenario as an error.

    Thanks and Regards,
    Matthew

     
  • jeff zhang

    jeff zhang - 2012-11-14

    hi Matthew,

    this is my code, it passes Questa, and works. but sveditor flags error on    wire  fred;

    module adder;
       reg  a = 5;
       reg   b = 7;
       logic  c;
       wire  fred;
      
       assign fred = a;
       assign fred = b;

        assign c = fred + fred;
    endmodule

    thanks
    jiefan

     
  • jeff zhang

    jeff zhang - 2012-11-14

    hi Matthew,

    probably i am not using the latest version. sorry for the confusion

    somehow my type assist is not working now. i mean if i type ctrl+space, nothing pop up.

    thanks
    jiefan

     
  • jeff zhang

    jeff zhang - 2012-11-14

    ok i fixed it. thanks.

    can i delete this stupid thread i created?

     

Log in to post a comment.