FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal


Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2004, 08:50 AM
Anton Ng
Posts: n/a
Default Bits access of variables

Hi All,

I am currently trying to use the Verilog PLI either 1.0 or the VPI

I will need to get the bits value out of a variable. But unfortunately
so far all my attempts have failed.

There is a small note in the IEEE 1364-2001 Verilog language
specification page 642.

"The VPI does not provide access to bits of variables. If a handle to
bit select of a variable is obtained, the object shall be vpiBitSelect
in the simple expression class. The variable containing the bit can be
accessed using vpiParent."

So it does say that VPI cannot be used to access bits of variables.
However it also says that bit select of a variable can be obtains. It is
very contradicting. Anyway, just wondering if anyone has successfully
try to access bit select of an integer variable using acc_ or vpi_
functions in PLI?

Any help or comments would be very appreciated.

Best Rgds,

Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Value of variables Johnsy Joseph Verilog 6 03-03-2004 11:26 PM

All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved