Question about vpiBit iterator

  • Thread starter parag_paul@hotmail.com
  • Start date
P

parag_paul@hotmail.com

Guest
This is a question in PLI
Suppose I have a handle for the following in pli

bit [1:10]a;

now if I have the handle for 'a' and want to iterate over the bits of
a

something like
vpiHandle h1 = vpi_handle_by_name("a", NULL);
vpiHandle h2= vpi_iterate(vpiBit, h1);

Which order should the iteration be a[1],a[2] ...a[10]

or a[10] , a[9] ... a[1]
 
On Tue, 04 Mar 2008 01:20:07 -0800, parag_paul@hotmail.com wrote:

This is a question in PLI
Suppose I have a handle for the following in pli

bit [1:10]a;

now if I have the handle for 'a' and want to iterate over the bits of a

something like
vpiHandle h1 = vpi_handle_by_name("a", NULL); vpiHandle h2=
vpi_iterate(vpiBit, h1);

Which order should the iteration be a[1],a[2] ...a[10]

or a[10] , a[9] ... a[1]
The iteration should always go from the left most bit to the right most
bit. For you example you should get: a[1],a[2]...a[10].
 

Welcome to EDABoard.com

Sponsor

Back
Top