[sv-bc] Wrong SV code in VMM

From: Surya Pratik Saha <spsaha_at_.....>
Date: Fri Jul 18 2008 - 02:18:47 PDT
Hi,
I am not sure whether this is the appropriate body to discuss about this 
matter, but since it is related to SV, so I am sending the mail. If it 
is not appropriate, please ignore this.

I have downloaded the freely available VMM release (version 1.0.1), 
where it is mentioned it is compatible with SV 1800-2008. But I don't 
think there is any SV 1800-2008 LRM. Or do I miss any?

Moreover, I have seen following problems in that VMM.
1) A special syntax used with `".
Consider the e.g:
`define VMM_CHANNEL xxx
module top;
    initial begin
        $display("VMM_CHANNEL %s", `"`VMM_CHANNEL`");
    end
endmodule

Here `" is used in normal position. But as per SV 1800-2005 LRM, `" can 
only be used in macro text. Is it changed later?

2) Function declaration having default argument, though body does not have.
Consider the e.g.:
module top;
    class C;
        extern function int f(input x, input y = 1);
        endclass
    function int C::f(input x, input y);
        f = x;
    endfunction
    int x;
    C c;
    initial begin
        x = c.f(1);
    end
endmodule

Where for 'y', the function declaration is having default argument 
value, whereas the body does not have. I am not sure whether LRM 
supports that or not.

-- 
Regards
Surya





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jul 18 02:19:54 2008

This archive was generated by hypermail 2.1.8 : Fri Jul 18 2008 - 02:20:55 PDT