UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie ucotecnico
Newbie
6,268 Views
Registered: ‎07-21-2008

Problems with the configuration of a ROM in System Generator 10.1

Hi! I'm having some problems with the configuration of a ROM in the System Generator 10.1.

 

I would like to implemente a ROM in order to save the program for a Picoblaze, but I'm not sure about the parameters and how to specify the program to store in the ROM.

 

Can someone explain me the process?

 

Thank you

0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
6,250 Views
Registered: ‎09-28-2007

Re: Problems with the configuration of a ROM in System Generator 10.1

The steps are outlined in the "PicoBlaze Microcontroller" section of the System Generator for DSP Reference Guide.

  1. Write a PicoBlaze program. Save the program with a .psm file extension.
  2. Run the assembler from the MATLAB command prompt as follows:

      For PicoBlaze 3:
      xlpb_as –p <your_design>.psm

      For PicoBlaze 2:
      xlpb_as –p <your_design>.psm -v 2

      The above command generates a M-file, fill_<your_design>_program_store.m, for initializing the content of the ROM block.
  3. Set the "Initial value vector" field of the ROM block to fill_<your_design>_program_store.
0 Kudos
Highlighted
3,164 Views
Registered: ‎03-06-2013

Problems with the configuration of a ROM in System Generator 12.4

Dear Support!

 

  I'm using MATLAB 7.11.0 and SysGen from Xilinx 12.4 ISE on Win7 x64.

  When I start 'xlpb_as' with the correct parameters I've got the error message:

 

??? Error using ==> xlpb_as at 33

error: couldn't run wrapkcpsm3.bat

 

And I could not find any batch file like this in the filesystem.

The 'kcpsm3.exe' exists in the 'Xilinx\12.4\ISE_DS\ISE\sysgen\bin\nt64'.

 

My questions are now:

How can I generate the .m file to configure the ROM?

How can I solve the issue of missing wrapper?

 

Thanks a lot,

Zoltan Pataki

0 Kudos
3,157 Views
Registered: ‎03-06-2013

Re: Problems with the configuration of a ROM in System Generator 12.4

The results of my additional inspections:

 

  The error message is misleading. Due to full path length limitation I've made a temporary directory in the network for compilation, that was the reason why I could not find the wrapper batch in the filesystem. It is created during compilation, in a new folder: 'projectname'_psm_results. But when I'm trying to start it directly I've got:

 

  This version of C:\Xilinx\12.4\ISE_DS\ISE\sysgen\bin\nt64\kcpsm3.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

 

  And as I see it is a known issue:

KCPSM3 for windows 7 64-bit?

 

  Could anybody send me a link for the for the Win7 x64 compatible kcpsm3.exe?

 

Thanks a lot.

 

Tags (3)
0 Kudos
Newbie azed10
Newbie
3,021 Views
Registered: ‎10-11-2013

Re: Problems with the configuration of a ROM in System Generator 12.4


@pataki.zoltan wrote:

Dear Support!

 

  I'm using MATLAB 7.11.0 and SysGen from Xilinx 12.4 ISE on Win7 x64.

  When I start 'xlpb_as' with the correct parameters I've got the error message:

 

??? Error using ==> xlpb_as at 33

error: couldn't run wrapkcpsm3.bat

 

And I could not find any batch file like this in the filesystem.

The 'kcpsm3.exe' exists in the 'Xilinx\12.4\ISE_DS\ISE\sysgen\bin\nt64'.

 

My questions are now:

How can I generate the .m file to configure the ROM?

How can I solve the issue of missing wrapper?

 

Thanks a lot,

Zoltan Pataki


Hi! I have the same problem, When i run xlpb_as on my .psm file Matlab creates the folder 'projectname'_psm_results but it can't access it. I added it to the path but then i got the following message:

 

??? Error using ==> xlpb_as at 33
C:/KANE_Workspace/WorkPlace/PicoBlaze_Test/pico_code.psmerror: couldn't discard old copy of
C:/KANE_Workspace/WorkPlace/PicoBlaze_Test/pico_code_psm_results. Perhaps ta mere NT thinks it's in use?

 

I tried changing the folders properties to be able to read and write in it but it would not work even though I had administrator's priviledges. Plus the folder is automatically deletes when I shut down Matlab! 

 

I am using Matlab R2011a and System generator 14.1

 

Thank you

 

 

0 Kudos