svmock (for use with svunit)

104 views
Skip to first unread message

neil johnson

unread,
Jun 21, 2018, 1:09:11 PM6/21/18
to SVUnit User Group
anyone interested in critiquing a pilot version of svmock? I could use a review before I attempt a formal release.


the readme on that page is a poor man's user guide that relies on an example I included. everything is functional (including the example) but the feature set is minimal. I'd wait to see how it's received b/f I invest more time in it.

(background on mocking... a mock is a test <thing> that replaces some real dependency with a derived class that let's you insert checking and feedback. basically a wrapper around the original with bells and whistles that isolate you from functionality you may not care about or that's hard to deal with)

thanks in advance!

-neil

Tudor Timi

unread,
Jun 22, 2018, 6:13:12 AM6/22/18
to SVUnit User Group
 I was thinking of working on this. Cool that you already did this!

neil johnson

unread,
Jul 11, 2018, 8:35:02 PM7/11/18
to SVUnit User Group
all,

after some encouraging feedback from tudor and a few touch ups, I think this initial version of svmock is ready for action.

I wrote a blog post to introduce it: https://wp.me/p1GmTc-1Tr.

I've got a complete README.md on github with more detailed explanation: https://github.com/nosnhojn/svmock

any feedback is good feedback so if you take a look and care to share your impression, please go ahead. thanks again to tudor for being the first to put it to the test.

-neil

Shruti Pasrija

unread,
Jul 17, 2018, 1:21:52 PM7/17/18
to SVUnit User Group
Hi,

I have used SVUnit for testing the drivers and sequencers in UVM .
I started looking at the SVMock and I was not clear about how I could use it for verifying the UVM components in testbench? 

It would be helpful if you could post an example for same or guide me about the approach.

Thanks!


neil johnson

unread,
Jul 18, 2018, 1:00:52 PM7/18/18
to SVUnit User Group
hi shruti. this is next on my list. you looking for an example for some specific type of component? monitor, driver, sequencer, other?

Shruti Pasrija

unread,
Jul 18, 2018, 6:52:51 PM7/18/18
to SVUnit User Group
I was looking for a example for a driver but any UVM component would work. I am just trying to understand how it would be useful in that sense.
Thanks!

neil johnson

unread,
Jul 19, 2018, 1:46:26 AM7/19/18
to SVUnit User Group
ok. I'm working on a driver example now so hopefully it helps. once I have something, I'll post it to my blog. probably a week or 2.

Shruti Pasrija

unread,
Jul 19, 2018, 2:13:40 PM7/19/18
to SVUnit User Group
Great,thanks!

neil johnson

unread,
Jul 24, 2018, 4:36:10 PM7/24/18
to SVUnit User Group
shruti, example for the uvm driver is done. it's in the svmock release package. here's a link to the blog that explains it: https://wp.me/p1GmTc-1TV. hopefully that helps!

-neil
Reply all
Reply to author
Forward
0 new messages