pli linking in verilog using modelsim

K

kunal

Guest
hi all
could you tell me how i link our c code in verilog using pli in
modelsim 5.7se and 6.0d version.
if you hav any reference materials regarding this then its very useful
for me.
thanks in advance
 
Kunal,
Did you try reading their documentation? If not, that't the first
step. Also some google search might help!

HTH
Ajeetha, CVC
www.noveldv.com

kunal wrote:
hi all
could you tell me how i link our c code in verilog using pli in
modelsim 5.7se and 6.0d version.
if you hav any reference materials regarding this then its very useful
for me.
thanks in advance
 
Hi,
This is one script I used before.. Hope it helps..

# Compiling the design
###################
vcom uart_tx.vhd
vlog test_uart_tx.v

# Compile C files
##############
cc -O -I/db/dspapps/modelsim_5.6e/include -c uarrt_pli.c

# Linking
#######
ld -G -B symbolic uart_pli.o -o uart_pli.so

# Invoking Modelsim
##################
vsim -pli ./pli/uart_pli.so -t ps test_uart_tx

Regards,
Naren.

kunal wrote:
hi all
could you tell me how i link our c code in verilog using pli in
modelsim 5.7se and 6.0d version.
if you hav any reference materials regarding this then its very useful
for me.
thanks in advance
 
hi naren
i didn't get exactly what i hav 2 do.
can u send pdf files or any material regarding this. it will graet
help 2 me.
my mail id is kunalkantsen@gmail.com
thanks in advance for valuable help
with regards
kunal kant sen
naren wrote:
Hi,
This is one script I used before.. Hope it helps..

# Compiling the design
###################
vcom uart_tx.vhd
vlog test_uart_tx.v

# Compile C files
##############
cc -O -I/db/dspapps/modelsim_5.6e/include -c uarrt_pli.c

# Linking
#######
ld -G -B symbolic uart_pli.o -o uart_pli.so

# Invoking Modelsim
##################
vsim -pli ./pli/uart_pli.so -t ps test_uart_tx

Regards,
Naren.

kunal wrote:
hi all
could you tell me how i link our c code in verilog using pli in
modelsim 5.7se and 6.0d version.
if you hav any reference materials regarding this then its very useful
for me.
thanks in advance
 
Hi Kunal,
The documents are already shipped with your simulator. You will
probably find the doc in the directory $MODELTECH/doc . Please also try
few examples that is shipped with the tool. I don't have a working MTI
right now in this system.. hence couldn't tell you now... But please
try to find your own bread.
Thanks,
Naren.



kunal wrote:
hi naren
i didn't get exactly what i hav 2 do.
can u send pdf files or any material regarding this. it will graet
help 2 me.
my mail id is kunalkantsen@gmail.com
thanks in advance for valuable help
with regards
kunal kant sen
naren wrote:
Hi,
This is one script I used before.. Hope it helps..

# Compiling the design
###################
vcom uart_tx.vhd
vlog test_uart_tx.v

# Compile C files
##############
cc -O -I/db/dspapps/modelsim_5.6e/include -c uarrt_pli.c

# Linking
#######
ld -G -B symbolic uart_pli.o -o uart_pli.so

# Invoking Modelsim
##################
vsim -pli ./pli/uart_pli.so -t ps test_uart_tx

Regards,
Naren.

kunal wrote:
hi all
could you tell me how i link our c code in verilog using pli in
modelsim 5.7se and 6.0d version.
if you hav any reference materials regarding this then its very useful
for me.
thanks in advance
 

Welcome to EDABoard.com

Sponsor

Back
Top