PLI Interface and acc_set_value? 
Author Message
 PLI Interface and acc_set_value?

Hi,

I'm using the following routine to assign a value to a verilog variable
(register) but id doesn't change the value. Does anybody has a
suggestion why? The value written to the struct is correct.

void    setVerilogValue(int *aHandle, const char *aValue)
{
        s_setval_delay s_delay = { {0}, accNoDelay};
        s_setval_value s_value  = { accHexStrVal];

        s_value.value.str = (char*)aValue;

        io_printf("Setting Verilog Var with value: %s\n",
s_value.value);

        acc_set_value(aHandle, &s_value, &s_delay);

        return;

Quote:
}

When aValue points to a string containing '5' I will get 111 as binary
out-put from VCS. But 111 is 7 as far as I can remember...

So what formats must be used to write-back values to verilog-variables
in the different formats. I'm mostly interested in the accHexStrVal
format.

Many thanks.

Robert M. Muench
S{*filter*}EDV-Anlagen GmbH, Karlsruhe, Germany


==>            ask for PGP public-key            <==



Mon, 06 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PLI 1.0 acc_set_value() problem

2. Verilog PLI acc_set_value() problems

3. PLI -- Question about acc_set_value()

4. ANNOUNCE: Perl/Python/Tcl Interfaces for Verilog PLI

5. OVI PLI Interface Mechanism compliance

6. VisualAge PLI Enterprise vs. VisualAge PLI Personal

7. PLI-32 Alpha 3.10 (Single message ZIP file (30K)) - pli-32.zip (0/1)

8. PLI-32 Alpha 3.10 (Single message ZIP file (30K)) - pli-32.zip (1/1)

9. PLI-32 For NT, alpha 3.10 (ZIP File: 378K] - pli-32.zip (10/10)

10. PLI-32 For NT, alpha 3.10 (ZIP File: 378K] - pli-32.zip (06/10)

11. PLI-32 For NT, alpha 3.10 (ZIP File: 378K] - pli-32.zip (05/10)

12. PLI-32 For NT, alpha 3.10 (ZIP File: 378K] - pli-32.zip (09/10)

 

 
Powered by phpBB® Forum Software