| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 48 guest(s) and 1 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
Tejasaurus Newbie


Joined: Mar 07, 2012 Posts: 4
|
Posted: Wed Mar 07, 2012 3:24 pm Post subject: Read back data from vmm_channel |
|
|
Hi,
I am a newbie to VMM and SV. I am trying to get back the 'Read' data from a vmm_channel to my generator. I am passing the read address through the object and putting in into the vmm_channel. I want to know if we can get back the read data from the xactor from the same channel?
Thanks,
Tejasaurus |
|
| Back to top |
|
 |
Janick Site Admin


Joined: Nov 29, 2003 Posts: 1382 Location: Ottawa, ON Canada
|
Posted: Wed Mar 07, 2012 4:10 pm Post subject: |
|
|
See the "Atomic" execution model in the VMM book if it is a simple in-order non-pipelined protocol.
The BFM should peek the transaction from the channel, annotate the read data into the transaction, then pop it out from the channel. When the put() returns, the read data can be found in the transaction object. |
|
| Back to top |
|
 |
Tejasaurus Newbie


Joined: Mar 07, 2012 Posts: 4
|
Posted: Wed Mar 07, 2012 4:36 pm Post subject: |
|
|
| Sorry. I could not get what you actually meant. In my design I have a generator, connected through a vmm_channel to the transactor. I am invoking the read task from the generator in which I only send the address and expect to read back the data at the generator. So I do a put() of the read-object from the generator to the channel. And I do a get() of this at the transactor. So you are saying that the data read back from the interface by the transactor is automatically sent back from the transactor through the channel back to my read-task in the generator? Don't I need to do something similar to a put-get operation back from the xactor to the generator through the channel?( I suppose not, because the channel is uni-directional right) |
|
| Back to top |
|
 |
Tejasaurus Newbie


Joined: Mar 07, 2012 Posts: 4
|
Posted: Wed Mar 07, 2012 6:34 pm Post subject: |
|
|
I got this working Using a get() from the transactor is not helping me to get back the read data to the generator. When I use the activate(),start(),complete() and remove() tasks it works for me. Can someone explain to me why this is happening.
Thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|