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

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-04-2004, 01:33 AM
dubravko
Guest
 
Posts: n/a
Default VisualDSP VisualBasic script Q

Hello all,
my setup is:
VisualDSP
APEX ICE
EZ-Kit BF535

I wrote a VB script that should fill memory from a ADspStringList.
ADspStringList is loaded from a file with data in HEx32 format, i.e. :
3de223
ffffd12a
ffa76a93
Loading code is :
Set InValueList = CreateObject( "VisualDSP.ADspStringList" )
While Not F.AtEndOfStream
InValueList.Add F.ReadLine
Wend

and it correctly loads the whole file (up to 1000000 32-bit values).

When I try to set memory, it will correctly set if using for example:
MemoryType.SetFormattedMemory &h0, 10240, 1, "Hex32", InValueList
(set 10240 32-bit values starting at 0x0)

but, if I try setting "larger" amount like:
MemoryType.SetFormattedMemory &h0, 19456, 1, "Hex32", InValueList

the SetFormattedMemory() consistently fails (both in simulation mode as well
as with real HW) !!!!

Any ideas what could go wrong, or any advice on how to load (up to 1000000)
Hex32 values from a file into a memory (in a reasonable time) ?

thanks,
dubi

//-------------------------------------------------------------------
Here is the whole script:
' Create a new file system object.
Set FSO = CreateObject( "Scripting.FileSystemObject" )
Idde.PrintText 0, vbCrlf & "Reading data from file: " & InFile & "..." &
vbCrlf
Set F = FSO.OpenTextFile( InFile, ForReading, False )

Set Proc = Idde.ActiveSession.ActiveProcessor
Set MemoryTypeList = Proc.MemoryTypeList
Set MemoryType = MemoryTypeList.Item( CStr( MemoryTypeName ) )

i = -1
Set InValueList = CreateObject( "VisualDSP.ADspStringList" )
While Not F.AtEndOfStream
i = i + 1
InValueList.Add F.ReadLine
Wend

Idde.PrintText 0 , "Closing file: " & InFile & "." & vbCrlf
F.Close
Idde.PrintText 0, InValueList.Count

'OK
MemoryType.SetFormattedMemory &h0, 10240, 1, "Hex32", InValueList

'Fails:
'MemoryType.SetFormattedMemory &h0, 19456, 1, "Hex32", InValueList

Idde.PrintText 0, "Finished setting " & MemoryTypeName & vbCrlf
Idde.RefreshWindows Proc.Name

'End time:
Idde.PrintText 0, Time

End Function




Reply With Quote
  #2 (permalink)  
Old 05-04-2004, 11:46 PM
dubravko
Guest
 
Posts: n/a
Default Re: VisualDSP VisualBasic script Q

FYI - just received response from ADI:


I was able to reproduce the problem and to determine that

it is a bug in SetFormattedMemory. The bug occurs when

> 65535 memory locations are being set. It will be fixed


in the next VisualDSP++ update in May.




Reply With Quote
Reply

Bookmarks

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
Installation of VisualDSP++ 3.5 for 32 bit Jaime Andres Aranguren Cardona DSP 4 05-01-2004 05:50 PM
VisualDSP Jacek DSP 2 04-16-2004 03:42 PM
VisualDSP++ and Tcl Jacek DSP 1 02-20-2004 06:06 PM
VisualDSP Sam \(rép. sans -no-sp-am\) DSP 3 01-06-2004 11:25 PM
Installing VisualDSP++ 3.0!!! [email protected] DSP 2 10-07-2003 08:41 AM


All times are GMT +1. The time now is 02:31 AM.


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