Lets talk about “let”
One disadvantage of `define is , It has a global scope.
Due to this,
When a model is moved from module level verification to system level verification, or
When multiple RTL modules are integrated
there may end up creating issues.
How to define a macro which is valid within that scope it is defined ?
SV has “let” keyword to do it.
“Let” is similar to `define, but “let” scope is limited to the scope it is defined.
Examples:
let addr = top.block1.unit1.base + top.block1.unit2.displ;
…
write_value(addr, 0);
let at_least_two(sig, rst = 1′b0) = rst || ($countones(sig) >= 2);
logic [15:0] sig1;
logic [3:0] sig2;
always_comb begin
q1: assert (at_least_two(sig1));
q2: assert (at_least_two(~sig2));
end
1 commentUVM tutorials
UVM 1.0 EA is released.
Download it from http://www.accellera.org/activities/vip/
I have posted following UVM tutorials on Testbench.in
n –> UVM tutorial http://www.testbench.in/UT_00_INDEX.html
n –> UVM Easy Labs http://www.testbench.in/UL_00_INDEX.html
Hope to see your valuable feedback on these tutorials.
Regards,
Gopi Krishna
1 commentBest of Systemverilog forums:
Got a SystemVerilog question and looking for help ? then here you go ->
the list of best discussion forums on SystemVerilog.
1) Verification guild: This forum is maintained by Janick Bergeron. You can find well know verification experts. Almost all the verification book authors can be found on this forum. All your queries will be answered with in a day. Not only SV queries, but all verification queries will be answered.
2) www.systemverilog.in : A site maintained by Kacper Technologies Pvt. Ltd, a development services group based in bangalore, India. This site has SV tutorials and SV discussion forum. The forum is very active and site is growing well.
3) www.svug.org , A site started by Industry experts, to help SV users. They also conduct group meetings. This forum was not successful as expected. They got 186 posts from past 2 years.
4) Synopsys and Cadence Sv forums: These forums are active but the traffic is less compared to verification guild. Most people prefer to use support channel for help than these forums.
5) VMM forum @ www.vmmcentral.com : VMM 1.0 is easy to understand and books/tutorials helped users a lot. For VMM 1.1 and 1.2, VMM blogs also helped users to understand easily. Lot of Synopsys customers use support channel as they got used to it. 185 posts are seen in past 2 years and most queries are answered by synopsys experts.
6) OVM forum @ www.ovmworld.org : OVM complexity resulted in 1400+ post in 2 years. All your ovm queries will be answered. Exerts from Cadence and mentor are there on this forum to help you.
And the award goes to …… Verification Guild.
1 commentPosted OVM factory tutorial
Today I posted Ovm Factory tutorial.
Check it @ http://www.testbench.in/OT_05_OVM_FACTORY.html
– Gopi Krishna
No commentsVMM scoreboard example
Thanks to Ankit Shah for sending me VMM scoreboard example. You can find it @ http://www.testbench.in/vmm_1.2_example_vmm_scoreboard_example.html
– Gopi Krishna
No commentsNEW OVM tutorial added
Checkout http://www.testbench.in/OT_00_INDEX.html . I added new ovm tutorial.
Right now I explained about topology,reporting and transaction.
Next , I will publish on Factories – both in VMM and OVM too.
Send me your comments and feedback on these topics.
– Gopi Krishna
3 commentsNew OVM Labs added.
Check out OVM labs @ http://www.testbench.in/CM_00_INDEX.html . A step by step , complete example tutorial to build a testbench from scratch.
- Gopi Krishna
2 commentsInspiration
I was inspired by Avidan Efody (www.specman-verification.com) and Deepak Kumar Tala (www.asic-world.com) and started www.testbench.in website . Specially this topic link by Avidane influenced me a lot. I started reading www.asic-world.com when I was in college. When I started studying Specman, I found www.specman-verification.com. I would like to take this opportunity to thank Avidan and Deepak for such a wonder full websites.
– Gopi Krishna
Testbench Project
When I first time thought about the website, I was very confused. It was very tough to maintain such a vast content. As there are lot of examples, and coloring the key words is also tough.
I started developing a language. I call it “gveb”. All the content in this site are maintained in simple text files. There wont be any format. There are about some 20 key words in “gveb”. The parser is developed using perl and gvim. Today “gveb” does everything. All these 400+ page tutorials are maintained in just 8 text files. Updates are done only in text files. Format, Layout, pages, links, forms , embedding images and then finally checking weather all the links and images are proper ……everything is done by “gveb”.
– GOPI KRISHNA
1 comment