<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Functional Verification Blog &#187; questasim</title>
	<atom:link href="http://blog.asicguru.com/tag/questasim/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.asicguru.com</link>
	<description>A Functional Verification Blog</description>
	<lastBuildDate>Tue, 18 May 2010 16:19:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multi Dimentional Associative array with modelsim</title>
		<link>http://blog.asicguru.com/2009/04/multi-dimentional-associative-array-with-modelsim/</link>
		<comments>http://blog.asicguru.com/2009/04/multi-dimentional-associative-array-with-modelsim/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 13:56:34 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[System Verilog]]></category>
		<category><![CDATA[modelsim]]></category>
		<category><![CDATA[questasim]]></category>

		<guid isPermaLink="false">http://asicguru.com/blog/?p=57</guid>
		<description><![CDATA[We are trying to compile ovm on the vcs and and I came across some code which was giving issue with VCS but it works in modelsim. So here is what the code looks like :
typedef int pint;
typedef pint pnewint[string];
module test;
pnewint aa [string];
initial begin
aa["ss"]["ss"] = 1;
$display (&#8221;I am here in test %d \n&#8221;, aa["ss"]["ss"]);
end
endmodule
Output :
=====
VSIM [...]]]></description>
			<content:encoded><![CDATA[<p>We are trying to compile ovm on the vcs and and I came across some code which was giving issue with VCS but it works in modelsim. So here is what the code looks like :</p>
<p>typedef int pint;<br />
typedef pint pnewint[string];</p>
<p>module test;<br />
pnewint aa [string];<br />
initial begin<br />
aa["ss"]["ss"] = 1;<br />
$display (&#8221;I am here in test %d \n&#8221;, aa["ss"]["ss"]);<br />
end<br />
endmodule</p>
<p>Output :</p>
<p>=====</p>
<p>VSIM 1&gt; run<br />
run<br />
# I am here in test           1<br />
#</p>
<p>After that I tried a direct deceleration test like :</p>
<p>module test;<br />
int aa [string] [string];<br />
initial begin<br />
aa["ss"]["ss"] = 1;<br />
$display (&#8221;I am here in test %d \n&#8221;, aa["ss"]["ss"]);<br />
end<br />
endmodule</p>
<p>Output :</p>
<p>=====</p>
<p>VSIM 1&gt; run<br />
run<br />
# I am here in test           1<br />
#</p>
<p>So basically the above statements mean that modelsim allow multi dimentional associative array creation. Now the question is  does LRM allows it.  I guess it does not <img src='http://blog.asicguru.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2009/04/multi-dimentional-associative-array-with-modelsim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
