<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Applied Electronics Journal</title>
	<atom:link href="http://agraja.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://agraja.wordpress.com</link>
	<description>agraja.wordpress.com</description>
	<lastBuildDate>Wed, 11 Jan 2012 11:00:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='agraja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Applied Electronics Journal</title>
		<link>http://agraja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://agraja.wordpress.com/osd.xml" title="Applied Electronics Journal" />
	<atom:link rel='hub' href='http://agraja.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SystemVerilog Interview Questions</title>
		<link>http://agraja.wordpress.com/2010/11/09/systemverilog-interview-questions/</link>
		<comments>http://agraja.wordpress.com/2010/11/09/systemverilog-interview-questions/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 12:27:23 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SystemVerilog]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=355</guid>
		<description><![CDATA[What is the use of OOPs in Verification? Compare Verilog and SV. OOPs allows plug-and-play re-usable verification components Verilog &#8211; Procedural SystemVerilog – OOPs. Abstraction, Encapsulation, Inheritance, Polymorphism Packed Array vs Unpacked Array Packed array &#8211; made of sub-dividing a vector into subfields which can be conveniently accessed as array elements. Also is guaranteed to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=355&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What is the use of OOPs in Verification? Compare Verilog and SV.</strong><br />
OOPs allows plug-and-play re-usable verification components<br />
Verilog &#8211; Procedural<br />
SystemVerilog – OOPs. Abstraction, Encapsulation, Inheritance, Polymorphism</p>
<p><strong>Packed Array vs Unpacked Array</strong><br />
Packed array &#8211; made of sub-dividing a vector into subfields which can be conveniently accessed as array elements. Also is guaranteed to be represented as a contiguous set of bits. Unpacked array may or many not be so represented.</p>
<p><strong>Usage of arrays</strong><br />
Packed/Unpacked array – Size Known at Compile time<br />
Dynamic array – Size Known at Run-time<br />
Queues – Size Varying at Run-time<br />
Associative array – Index/Key can be random. Sparse Memory Models. Scoreboard for out-of-order transactions</p>
<p><strong>Struct vs. Union</strong><br />
Struct occupies memory of Sum of sizes of all members.<br />
Union occupies memory of Largest sized member. All members point to the same memory location. Tagged Union can declare methods of void type.</p>
<p><strong>Struct vs. Class</strong><br />
Struct can’t have methods. No OOPs ??</p>
<p><strong>Reg vs. Logic</strong><br />
Use logic instead of reg. Intent – deprecate use of reg in future.</p>
<p><strong>Protected vs. Private/Local</strong><br />
Private &#8211; Members(fields/methods) can only be accessed within the same scope<br />
Protected &#8211; Similar to Private except that Members can be accessed in a derived class</p>
<p><strong>What is polymorphism?</strong><br />
Non-OOP form &#8211; Function overloading in C++<br />
OOP form &#8211; Dynamic lookup of virtual functions</p>
<p><strong>What is virtual function?</strong><br />
Function which can be over-ridden by extending the class</p>
<p><strong>Use of Packages</strong><br />
Explicit named scope. Similar to namespace in C++<br />
It may contain typedef, variables, functions, sequences and properties</p>
<p><strong>Use of Program Block</strong><br />
Eliminate test-bench race by avoiding non-determinism.<br />
Statements (initial blocks) sensitive to design (module) signals are scheduled in Reactive region.<br />
Initial blocks in modules are scheduled in Active region. Design signals driven from program using non-blocking assignments are updated in NBA region.</p>
<p><strong>Use of Virtual Interface</strong><br />
Separate abstract models from actual signals</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=355&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2010/11/09/systemverilog-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>Latch vs Flip Flop</title>
		<link>http://agraja.wordpress.com/2010/11/09/latch-vs-flip-flop/</link>
		<comments>http://agraja.wordpress.com/2010/11/09/latch-vs-flip-flop/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 12:12:57 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Digital Electronics]]></category>
		<category><![CDATA[Interview Questions]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=352</guid>
		<description><![CDATA[Latch • Asynchronous • Level Sensitive • Clock signal = Enable signal* = Latch Signal o It is not apt to call it Clock; better call it Enable o When ‘1’, Q changes when D changes o When ‘0’, Q retains state • Used as Mechanical Switch De-bouncer • Processor ALE signal implemented using Latch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=352&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://agraja.files.wordpress.com/2010/11/latch_flipflop.jpg"><img class="alignleft size-full wp-image-349" title="Latch_FlipFlop" src="http://agraja.files.wordpress.com/2010/11/latch_flipflop.jpg?w=470" alt=""   /></a></p>
<p><strong>Latch</strong></p>
<p>• Asynchronous</p>
<p>• Level Sensitive</p>
<p>• Clock signal = Enable signal* = Latch Signal</p>
<p>o It is not apt to call it Clock; better call it Enable</p>
<p>o When ‘1’, Q changes when D changes</p>
<p>o When ‘0’, Q retains state</p>
<p>• Used as Mechanical Switch De-bouncer</p>
<p>• Processor ALE signal implemented using Latch</p>
<p><strong>Flip Flop</strong></p>
<p>• Edge Sensitive (Master-Slave Flip Flop)</p>
<p>• Clock signal = Enable signal* = Gating Signal</p>
<p>o When ‘1’, Q depends on D; Q doesn’t change till next Clock.</p>
<p>o When ‘0’, Q retains state</p>
<p>• All sequential logic implemented using Flip Flops</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=352&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2010/11/09/latch-vs-flip-flop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>

		<media:content url="http://agraja.files.wordpress.com/2010/11/latch_flipflop.jpg" medium="image">
			<media:title type="html">Latch_FlipFlop</media:title>
		</media:content>
	</item>
		<item>
		<title>Airtel Broadband connection on linux machine</title>
		<link>http://agraja.wordpress.com/2010/03/01/airtel-broadband-connection-on-linux-machine/</link>
		<comments>http://agraja.wordpress.com/2010/03/01/airtel-broadband-connection-on-linux-machine/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:20:32 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[airtel]]></category>
		<category><![CDATA[broadband]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=343</guid>
		<description><![CDATA[Info on how to setup network settings for airtel broadband connection on a linux system<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=343&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a dual boot (Windows XP, openSUSE) PC.</p>
<p>I have my airtel broadband connection activated.<br />
Airtel Engineer had done the setup and activation on WindowsXP.<br />
After he left, I did a reboot to openSUSE.</p>
<p>Then I just followed the instructions as given in the below site.<br />
Pasting it without changing a word</p>
<p>=====================================================================<br />
<a href="http://kasolutions.wordpress.com/2009/05/14/using-airtel-broadband-in-linux/" target="_blank">http://kasolutions.wordpress.com/2009/05/14/using-airtel-broadband-in-linux/</a></p>
<p>yesterday i sweated a lot for bringing up airtel braodband in linux. to save water (!) please read the instructions.<br />
pre-requisites<br />
airtel router ip , subnet mask , supplied IP<br />
generally it is 192.168.1.1<br />
to find out this, use windows. connect to windows and wait for the &#8220;LAN in now connected&#8221; pop up<br />
open up a command prompt and type in &#8220;ipconfig&#8221;<br />
from the listing, look for something like this<br />
Ethernet adapter Local Area Connection:Connection-specific DNS Suffix . :IP Address. . . . . . . . . . . . : 192.168.1.36Subnet Mask . . . . . . . . . . . : 255.255.252.0Default Gateway . . . . . . . . . : 192.168.1.15<br />
Ethernet adapter Local Area Connection:<br />
Connection-specific DNS Suffix  . :<br />
IP Address. . . . . . . . . . . . : 192.168.1.2            =&gt; your machine&#8217;s IP (note this down)<br />
Subnet Mask . . . . . . . . . . . : 255.255.255.0   =&gt; mask (note this down)<br />
Default Gateway . . . . . . . . . : 192.168.1.1      =&gt; airtel router&#8217;s IP (note this down)<br />
We are all set to get into linux. Follow the steps in their order<br />
From  a shell execute the commands<br />
1. $ ifconfig eth0 192.168.1.2<br />
this sets IP for eth0 . to know which eth link you have, execute the command &#8220;ifconfig -a&#8221; and look for the link eth<br />
2. $ route add default gw 192.168.1.1<br />
this sets default gateay as airtel router<br />
3. $ vim /etc/resolv.conf<br />
add this line<br />
nameserver 192.168.1.1<br />
to the file&#8217;s end after commenting out all the other lines (for commenting, put a &#8220;#&#8221; at the beginning of a line)<br />
4. $ ping www.google.com<br />
it will work<br />
Thats it. Browse away</p>
<p>=====================================================================</p>
<p>Note: ifconfig, route commands require superuser privileges<br />
Type su, then enter password and do steps 1 through 3<br />
For fourth step, superuser privilege is not required.<br />
Type exit and call the ping command as a normal user</p>
<p>Within a minute I was able to browse from my openSUSE.<br />
That was really nice.</p>
<p>Then I did a restart into openSUSE<br />
Now I was not able to browse anything.<br />
Sadly I had to repeat the above steps again to start with.</p>
<p>Then I looked up the Control Center to see if these settings<br />
could be saved. Couldn&#8217;t do it successfully.</p>
<p>Finally I did a try as given below; it worked right away<br />
Computer -&gt; Control Center -&gt; Network Settings<br />
-&gt; Global Options:</p>
<ul>
<li> Traditional Method with ifup</li>
<li> Enable IPv6</li>
<li> Hostname to send AUTO</li>
<li> Change Default route via DHCP</li>
</ul>
<p>-&gt; Overview -&gt; Edit<br />
-&gt; General</p>
<ul>
<li> Activate device at boot time</li>
</ul>
<p>-&gt; Address</p>
<ul>
<li> Dynamic Address DHCP</li>
</ul>
<p>-&gt; Hardware</p>
<ul>
<li> Device name eth0</li>
</ul>
<br /> Tagged: <a href='http://agraja.wordpress.com/tag/airtel/'>airtel</a>, <a href='http://agraja.wordpress.com/tag/broadband/'>broadband</a>, <a href='http://agraja.wordpress.com/tag/dhcp/'>DHCP</a>, <a href='http://agraja.wordpress.com/tag/linux/'>Linux</a>, <a href='http://agraja.wordpress.com/tag/opensuse/'>openSUSE</a>, <a href='http://agraja.wordpress.com/tag/suse/'>suse</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=343&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2010/03/01/airtel-broadband-connection-on-linux-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>System Verilog Singleton Example</title>
		<link>http://agraja.wordpress.com/2008/10/03/system-verilog-singleton-example/</link>
		<comments>http://agraja.wordpress.com/2008/10/03/system-verilog-singleton-example/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 05:43:40 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Cpp]]></category>
		<category><![CDATA[SystemVerilog]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[instance]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=322</guid>
		<description><![CDATA[Purpose of a singleton: To have a class which has only one instance(object) All the objects of this class refer to same global object that is created only once This design pattern provides a mechanism for providing namespaces to global variables Download here. singleton-design-pattern C++ example for singleton design pattern: click here System Verilog example [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=322&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Purpose of a singleton:<br />
To have a class which has only one instance(object)<br />
All the objects of this class refer to same global object<br />
that is created only once<br />
This design pattern provides a mechanism for providing<br />
namespaces to global variables</p>
<p>Download here. <a href="http://agraja.files.wordpress.com/2008/10/singleton-design-pattern.pdf">singleton-design-pattern</a><br />
C++ example for singleton design pattern: <a title="C++ singleton example" href="http://agraja.wordpress.com/2008/10/03/cpp-singleton-example/">click here</a></p>
<p>System Verilog example for singleton design pattern</p>
<p>// Filename  : singleton.sv<br />
// Author    : A.G.Raja<br />
// License   : GPL<br />
// Website   : http://agraja.wordpress.com</p>
<p>module tb;</p>
<p>class Singleton;<br />
// object that is created only once<br />
extern static Singleton single;<br />
// constructor that is called only once<br />
extern function new;<br />
// method to get object<br />
extern function Singleton get_instance;<br />
// data to check the functionality<br />
int data;<br />
endclass</p>
<p>initial Singleton::single = null;</p>
<p>function Singleton::new;<br />
data = 14;<br />
endfunction</p>
<p>function Singleton Singleton::get_instance;<br />
// call the constructor for the first time<br />
// if the object has been created already<br />
// return reference to the object already created<br />
if(single==null) single = new;<br />
// return the reference to the object<br />
return single;<br />
endfunction</p>
<p>Singleton s, t;</p>
<p>initial begin<br />
// don&#8217;t use s= new;<br />
// since it will create new instances<br />
// instead use the get_instance method<br />
s = s.get_instance();<br />
t = t.get_instance();<br />
$display(&#8220;initial value of s.data  = &#8220;,s.data);<br />
s.data = 25;<br />
$display(&#8220;modified value of s.data = &#8220;,s.data);<br />
$display(&#8220;value of t.data          = &#8220;,t.data);<br />
end<br />
endmodule</p>
<p>Result:<br />
initial value of s-&gt;data  = 14<br />
modified value of s-&gt;data = 25<br />
value of t-&gt;data          = 25<br />
Download here. <a href="http://agraja.files.wordpress.com/2008/10/singleton-design-pattern.pdf">singleton-design-pattern</a></p>
<br /> Tagged: C, class, design, global, instance, object, pattern, singleton, SystemVerilog <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=322&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/10/03/system-verilog-singleton-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ Singleton Example</title>
		<link>http://agraja.wordpress.com/2008/10/03/cpp-singleton-example/</link>
		<comments>http://agraja.wordpress.com/2008/10/03/cpp-singleton-example/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 05:40:20 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Cpp]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[instance]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=319</guid>
		<description><![CDATA[Download here.  singleton-design-pattern Purpose of a singleton: To have a class which has only one instance(object) All the objects of this class refer to same global object that is created only once This design pattern provides a mechanism for providing namespaces to global variables C++ example for singleton design pattern // Filename  : singleton.cpp // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=319&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download here.  <a href="http://agraja.files.wordpress.com/2008/10/singleton-design-pattern.pdf">singleton-design-pattern</a></p>
<p>Purpose of a singleton:<br />
To have a class which has only one instance(object)<br />
All the objects of this class refer to same global object<br />
that is created only once<br />
This design pattern provides a mechanism for providing<br />
namespaces to global variables</p>
<p>C++ example for singleton design pattern</p>
<p>// Filename  : singleton.cpp<br />
// Author    : A.G.Raja<br />
// License   : GPL<br />
// Website   : http://agraja.wordpress.com</p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>class Singleton {<br />
// constructor that is called only once<br />
Singleton();<br />
// object that is created only once<br />
static Singleton *single;<br />
public:<br />
// method to get object<br />
Singleton* get_instance();<br />
// data to check the functionality<br />
int data;<br />
};</p>
<p>Singleton* Singleton::single = NULL;</p>
<p>Singleton* Singleton::get_instance() {<br />
// call the constructor for the first time<br />
// if the object has been created already<br />
// return reference to the object already created<br />
if(single==NULL) single = new Singleton();<br />
return single;<br />
}</p>
<p>Singleton::Singleton() {<br />
data = 14;<br />
}</p>
<p>int main() {<br />
Singleton *s, *t ;<br />
s = s-&gt;get_instance();<br />
cout&lt;&lt;&#8221;initial value of s-&gt;data  = &#8220;&lt;&lt;s-&gt;data&lt;&lt;endl;<br />
s-&gt;data = 25;<br />
cout&lt;&lt;&#8221;modified value of s-&gt;data = &#8220;&lt;&lt;s-&gt;data&lt;&lt;endl;<br />
t = t-&gt;get_instance();<br />
cout&lt;&lt;&#8221;value of t-&gt;data          = &#8220;&lt;&lt;t-&gt;data&lt;&lt;endl;<br />
}<br />
// end of file singleton.cpp</p>
<p>Result:<br />
initial value of s-&gt;data  = 14<br />
modified value of s-&gt;data = 25<br />
value of t-&gt;data          = 25</p>
<p>Download here.  <a href="http://agraja.files.wordpress.com/2008/10/singleton-design-pattern.pdf">singleton-design-pattern</a></p>
<br /> Tagged: C, class, design, global, instance, object, pattern, singleton <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=319&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/10/03/cpp-singleton-example/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>System Verilog Virtual Interface</title>
		<link>http://agraja.wordpress.com/2008/09/24/system-verilog-virtual-interface/</link>
		<comments>http://agraja.wordpress.com/2008/09/24/system-verilog-virtual-interface/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 06:53:14 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[SystemVerilog]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Modelsim]]></category>
		<category><![CDATA[ncverilog]]></category>
		<category><![CDATA[questasim]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=316</guid>
		<description><![CDATA[Download here. system_verilog_virtual_interface // Filename    : virtual_interface.sv // Author      : A.G.Raja // License     : GPL // Website     : http://agraja.wordpress.com interface bus(input wire clk); int address; int data; modport virtual_interface(input clk); endinterface module virtual_interface; bit clk; bus BUS(clk); class monitor; virtual bus VBUS; task disp; $display(VBUS.address); $display(VBUS.data); endtask endclass monitor m; initial begin m = new; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=316&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download here. <a href="http://agraja.files.wordpress.com/2008/09/system_verilog_virtual_interface.pdf">system_verilog_virtual_interface</a></p>
<p>// Filename    : virtual_interface.sv<br />
// Author      : A.G.Raja<br />
// License     : GPL<br />
// Website     : http://agraja.wordpress.com</p>
<p>interface bus(input wire clk);<br />
int address;<br />
int data;</p>
<p>modport virtual_interface(input clk);<br />
endinterface</p>
<p>module virtual_interface;<br />
bit clk;<br />
bus BUS(clk);<br />
class monitor;<br />
virtual bus VBUS;<br />
task disp;<br />
$display(VBUS.address);<br />
$display(VBUS.data);<br />
endtask<br />
endclass<br />
monitor m;</p>
<p>initial begin<br />
m = new;<br />
m.VBUS = BUS;<br />
BUS.address = 100;<br />
BUS.data    = 1234;<br />
m.disp;<br />
end<br />
endmodule</p>
<p>// Running simulation in ncverilog<br />
// ncverilog +sv virtual_interface.sv</p>
<p>// Running simulation in modelsim/questasim<br />
// vlib work<br />
// vlog -sv virtual_interface.sv<br />
// vsim -c virtual_interface<br />
// run</p>
<p>Download here. <a href="http://agraja.files.wordpress.com/2008/09/system_verilog_virtual_interface.pdf">system_verilog_virtual_interface</a></p>
<br /> Tagged: class, interface, Modelsim, ncverilog, questasim, SystemVerilog, virtual <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=316&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/09/24/system-verilog-virtual-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>Transaction Level Modeling in System Verilog</title>
		<link>http://agraja.wordpress.com/2008/09/24/transaction-level-modeling-system-verilog/</link>
		<comments>http://agraja.wordpress.com/2008/09/24/transaction-level-modeling-system-verilog/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 06:17:37 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[SystemVerilog]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[consumer]]></category>
		<category><![CDATA[inheritance]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[producer]]></category>
		<category><![CDATA[tlm]]></category>
		<category><![CDATA[transaction]]></category>
		<category><![CDATA[virutal]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=313</guid>
		<description><![CDATA[Download here. transactionlevelmodeling_systemverilog // Filename    : tlm.sv // Author      : A.G.Raja // License     : GPL // Website     : http://agraja.wordpress.com module producer_consumer; virtual class put_if; // Abstract Class whose methods are not yet implemented virtual task put(int val); endtask endclass class producer; put_if put_port; task run; int i; for(i=0;i&#60;10;i++) put_port.put(i); endtask endclass class consumer extends put_if; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=313&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download here. <a href="http://agraja.files.wordpress.com/2008/09/transactionlevelmodeling_systemverilog.pdf">transactionlevelmodeling_systemverilog</a></p>
<p>// Filename    : tlm.sv<br />
// Author      : A.G.Raja<br />
// License     : GPL<br />
// Website     : http://agraja.wordpress.com</p>
<p>module producer_consumer;</p>
<p>virtual class put_if;</p>
<p>// Abstract Class whose methods are not yet implemented<br />
virtual task put(int val);<br />
endtask<br />
endclass</p>
<p>class producer;<br />
put_if put_port;<br />
task run;<br />
int i;<br />
for(i=0;i&lt;10;i++) put_port.put(i);<br />
endtask<br />
endclass</p>
<p>class consumer extends put_if;</p>
<p>// methods of put_if class are over-ridden</p>
<p>// and defined here<br />
task put(int val);<br />
$display(&#8220;Consumer receiving &#8220;,val);<br />
endtask<br />
endclass</p>
<p>producer p;<br />
consumer c;</p>
<p>initial begin<br />
p = new;<br />
c = new;<br />
p.put_port = c;<br />
p.run;<br />
end<br />
endmodule</p>
<p>// Running simulation in ncverilog</p>
<p>ncverilog +sv tlm.sv</p>
<p>// Running simulation in modelsim/questasim</p>
<p>vlib work</p>
<p>vlog -sv tlm.sv</p>
<p>vsim -c producer_consumer</p>
<p>run</p>
<p>Download here. <a href="http://agraja.files.wordpress.com/2008/09/transactionlevelmodeling_systemverilog.pdf">transactionlevelmodeling_systemverilog</a></p>
<br /> Tagged: class, consumer, inheritance, method, producer, SystemVerilog, tlm, transaction, virutal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=313&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/09/24/transaction-level-modeling-system-verilog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>System Verilog OVM &#8211; Hello World Program</title>
		<link>http://agraja.wordpress.com/2008/09/19/system-verilog-ovm-hello-world-program/</link>
		<comments>http://agraja.wordpress.com/2008/09/19/system-verilog-ovm-hello-world-program/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 10:00:32 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[SystemVerilog]]></category>
		<category><![CDATA[Verilog]]></category>
		<category><![CDATA[hello]]></category>
		<category><![CDATA[irun]]></category>
		<category><![CDATA[ius]]></category>
		<category><![CDATA[ncverilog]]></category>
		<category><![CDATA[ovm]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=307</guid>
		<description><![CDATA[Here is hello world program in System Verilog Open Verification Methodology Download here. hello_ovm // Filename : hello_ovm.sv // Author : A.G.Raja // License : GPL // Website : http://agraja.wordpress.com module hello_ovm; `include &#8220;ovm.svh&#8221; class Random extends ovm_transaction; rand int num; constraint c { num &#62;= 0 &#38;&#38; num &#60; 50; } function new(string name); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=307&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0   false false false         MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--></p>
<p class="MsoNormal">Here is hello world program in</p>
<p class="MsoNormal">System Verilog Open Verification Methodology</p>
<p class="MsoNormal">
<p class="MsoNormal"><a href="http://agraja.files.wordpress.com/2008/09/hello_ovm.pdf">Download here. hello_ovm</a></p>
<p class="MsoNormal">
<p class="MsoNormal"><span style="font-size:11pt;">// Filename<span> </span>: hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">// Author<span> </span>: A.G.Raja</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">// License<span> </span>: GPL</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">// Website<span> </span>: <a href="http://agraja.wordpress.com/">http://agraja.wordpress.com</a></span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">module hello_ovm;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">`include &#8220;ovm.svh&#8221;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">class Random extends ovm_transaction;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span></span><span style="font-size:11pt;" lang="PT-BR">rand int num;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;" lang="PT-BR"><span> </span>constraint c { num &gt;= 0 &amp;&amp; num &lt; 50; }</span></p>
<p class="MsoNormal"><span style="font-size:11pt;" lang="PT-BR"><span> </span><span> </span></span><span style="font-size:11pt;">function new(string name);</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>super.new(name);</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>endfunction</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">endclass</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">Random r;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">initial begin</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>r = new(&#8220;Hello OVM&#8221;);</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>r.print();</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>ovm_report_message(&#8220;APPLIED ELECTRONICS JOURNAL&#8221;,</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span>$psprintf(&#8220;Hello World&#8221;));</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">end</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">endmodule</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">// End of file hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">One liner to run this in IUS</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">When OVM library is not installed by default:</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">1) Set OVMHOME to the root directory where OVM library is installed</span></p>
<p class="MsoNormal"><span style="font-size:11pt;" lang="PT-BR">setenv OVMHOME /netstar/ag.raja/sv/OVM/ovm-1.1</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">2.a) IUS 6.2-s003 and IUS 6.2-s004</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">irun</span><span style="font-size:11pt;"> -sv -nowarn PMBDVX -ovmhome $OVMHOME $OVMHOME/src/ovm_pkg.sv hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">2.b) IUS 6.2-s005</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">irun</span><span style="font-size:11pt;"> -sv -ovmhome $OVMHOME $OVMHOME/src/ovm_pkg.sv hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"><span> </span></span></p>
<p class="MsoNormal"><span style="font-size:11pt;">When OVM is already installed to $CDS_INST_DIR/tools/ovm</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">a) IUS 6.2-s003 and IUS 6.2-s004</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">irun</span><span style="font-size:11pt;"> -sv -ovm -nowarn PMBDVX hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">b) IUS 6.2-s005</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">irun</span><span style="font-size:11pt;"> -sv -ovm hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">Using Options File</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">irun</span><span style="font-size:11pt;"> –f options_file</span></p>
<p class="MsoNormal"><span style="font-size:11pt;"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;">//<span> </span>options_file begins here</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">-sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">-ovm</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">hello_ovm.sv</span></p>
<p class="MsoNormal"><span style="font-size:11pt;">// options_file ends here</span></p>
<p class="MsoNormal">
<p class="MsoNormal"><a href="http://agraja.files.wordpress.com/2008/09/hello_ovm.pdf">Download here. hello_ovm</a></p>
<br /> Tagged: hello, irun, ius, ncverilog, ovm, SystemVerilog, Verilog <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=307&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/09/19/system-verilog-ovm-hello-world-program/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>Syntax Highlight For System Verilog Files</title>
		<link>http://agraja.wordpress.com/2008/09/19/syntax-highlight-for-system-verilog-files/</link>
		<comments>http://agraja.wordpress.com/2008/09/19/syntax-highlight-for-system-verilog-files/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 05:02:34 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[SystemVerilog]]></category>
		<category><![CDATA[Verilog]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[sv]]></category>
		<category><![CDATA[svh]]></category>
		<category><![CDATA[svhpp]]></category>
		<category><![CDATA[svpp]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>
		<category><![CDATA[vpp]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=301</guid>
		<description><![CDATA[Enable syntax highlight for sytemm verilog, verilog preprocessor files with extensions v, sv, vpp, svh, svhpp Create a file named &#8220;.vimrc&#8221; in your home directory [*nix] Put the following lines in that file &#8220;File Begins here &#8220;Note: Comments in vim script begin with double quote &#8220;Filename : .vimrc &#8220;Author    :  A.G.Raja &#8220;Website  : http://agraja.wordpress.com &#8220;Show [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=301&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Enable syntax highlight for sytemm verilog, verilog preprocessor files with extensions v, sv, vpp, svh, svhpp</p>
<p>Create a file named &#8220;.vimrc&#8221; in your home directory [*nix]</p>
<p>Put the following lines in that file</p>
<p>&#8220;File Begins here</p>
<p>&#8220;Note: Comments in vim script begin with double quote</p>
<p>&#8220;Filename : .vimrc</p>
<p>&#8220;Author    :  A.G.Raja</p>
<p>&#8220;Website  : http://agraja.wordpress.com</p>
<p>&#8220;Show line numbers</p>
<p>set nu</p>
<p>&#8220;Source the syntax file</p>
<p>so $VIMRUNTIME/syntax/verilog.vim</p>
<p>&#8220;Add file extensions to be highlighted</p>
<p>au Syntax sv runtime! syntax/verilog.vim</p>
<p>au Syntax svh runtime! syntax/verilog.vim</p>
<p>au Syntax vpp runtime! syntax/verilog.vim</p>
<p>au Syntax svpp runtime! syntax/verilog.vim</p>
<p>au Syntax svhpp runtime! syntax/verilog.vim</p>
<p>&#8220;End of file</p>
<br /> Tagged: highlight, Linux, startup, sv, svh, svhpp, svpp, syntax, SystemVerilog, Verilog, vim, vimrc, vpp <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=301&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/09/19/syntax-highlight-for-system-verilog-files/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ string, wstring conversion functions</title>
		<link>http://agraja.wordpress.com/2008/09/08/cpp-string-wstring-conversion/</link>
		<comments>http://agraja.wordpress.com/2008/09/08/cpp-string-wstring-conversion/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 06:15:17 +0000</pubDate>
		<dc:creator>AG Raja</dc:creator>
				<category><![CDATA[Cpp]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[wide]]></category>
		<category><![CDATA[wstring]]></category>

		<guid isPermaLink="false">http://agraja.wordpress.com/?p=298</guid>
		<description><![CDATA[Download here. string-wstring-conversion-functions // Filename    : string_wstring.cpp // Author      : A.G.Raja // License     : GPL // Website     : http://agraja.wordpress.com #include &#60;iostream&#62; using namespace std; string wstring2string(wstring wstr) { string str(wstr.length(),&#8217; &#8216;); copy(wstr.begin(),wstr.end(),str.begin()); return str; } wstring string2wstring(string str) { wstring wstr(str.length(),L&#8217; &#8216;); copy(str.begin(),str.end(),wstr.begin()); return wstr; } int main() { wstring wstr = string2wstring(&#8220;raja&#8221;); string str [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=298&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://agraja.files.wordpress.com/2008/09/string-wstring-conversion-functions.pdf">Download here. string-wstring-conversion-functions</a></p>
<p>// Filename    : string_wstring.cpp<br />
// Author      : A.G.Raja<br />
// License     : GPL<br />
// Website     : http://agraja.wordpress.com</p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>string wstring2string(wstring wstr) {<br />
string str(wstr.length(),&#8217; &#8216;);<br />
copy(wstr.begin(),wstr.end(),str.begin());<br />
return str;<br />
}</p>
<p>wstring string2wstring(string str) {<br />
wstring wstr(str.length(),L&#8217; &#8216;);<br />
copy(str.begin(),str.end(),wstr.begin());<br />
return wstr;<br />
}</p>
<p>int main() {<br />
wstring wstr = string2wstring(&#8220;raja&#8221;);<br />
string str = wstring2string(wstr);<br />
cout&lt;&lt;str&lt;&lt;endl;<br />
}</p>
<p><a href="http://agraja.files.wordpress.com/2008/09/string-wstring-conversion-functions.pdf">Download here. string-wstring-conversion-functions</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/agraja.wordpress.com/298/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/agraja.wordpress.com/298/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/agraja.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/agraja.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/agraja.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=agraja.wordpress.com&amp;blog=86333&amp;post=298&amp;subd=agraja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://agraja.wordpress.com/2008/09/08/cpp-string-wstring-conversion/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cf2e9879c7629a6e06c5a9f2f79695d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">agraja</media:title>
		</media:content>
	</item>
	</channel>
</rss>
