Testing a NGC IP in XPS?

Testing a NGC IP in XPS?

Posted in the Xilinx Forum

Alejandro Cristo

Halethorpe, MD

#1 Jul 25, 2010
Hi Folks,

I have generated a very basic substracter with CoreGen, with two 32-bit inputs + CLK, and a 32-bit output, that will be the substraction of both inputs.

I have configured my XPS project just like in: http://www.xilinx.com/support/answers/22882.h...

and the substracter IP is loading in my project successfully.

I have created an instance, connecting it to the PLB, i have assigned the ports and memory address (64KB). So, it should be ready to work.

But what C source do I need to create to test it? How can I give two numbers to it to get the substraction result? When creating the custom IP I assigned 3 registers (2 inputs and 1 output), so I have written the following code:


#include "xparameters.h"

#include "stdio.h"

#include "xutil.h"
#include "xuartns550_l.h"

#include "restador.h"


int main (void){

int a,b,c;

/* Initialize RS232_Uart_1 - Set baudrate and number of stop bits */
XUartNs550_mSetLineControlReg( XPAR_RS232_UART_1_BASEADDR, XUN_LCR_8_DATA_BITS);

print("Substracter Test Starts...\n\r");



xil_printf("Resta:%d\n\r ",c);

print("Substracter Test Done...\n\r");

return 0;


I have not been able to test it because I have the board in the lab and now I am at home, but I am sure that it is not working and that is not the way to use the substraction IP.

How can I use the substracter?

Thank you very much!

Xilinx Virtex5 ML507
Xilinx Platform Studio XPS 11.1

Tell me when this thread is updated:

Subscribe Now Add to my Tracker

Add your comments below

Characters left: 4000

Please note by submitting this form you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Xilinx Discussions

Title Updated Last By Comments
News Qualcomm enters server CPU market with 24-core ... Oct '15 marko 1
Xilinx ISE Will not uninstall! (Aug '07) Aug '14 Piedpiper 2
error: illegal number of bits (May '14) May '14 S ramesh IIT 1
Having problems with Model Sim License (Mar '07) Feb '14 Pooja 30
how do i process an image using system generato... (Mar '10) Jan '14 Wheatley 3
News Molycorp Inc (MCP), Workday Inc (WDAY): Four No... (Jul '13) Jul '13 docrew0 1
doubt in ucf file (Feb '13) Feb '13 sai 1
More from around the web