From e2388c02d712fbf9f65d284ca3f7f84ba0a78752 Mon Sep 17 00:00:00 2001 From: Punnaiah Choudary Kalluri Date: Fri, 1 Aug 2014 23:21:43 +0530 Subject: [PATCH] devcfg: Modified the examples for regression test suite Added test PASS/FAIL information Modified the bitstream file size to 0xF6EC0 Signed-off-by: Punnaiah Choudary Kalluri Acked-by: Anirudha Sarangi --- .../drivers/devcfg/examples/xdevcfg_interrupt_example.c | 4 +++- .../drivers/devcfg/examples/xdevcfg_polled_example.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_interrupt_example.c b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_interrupt_example.c index 297ad837..6c0df659 100755 --- a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_interrupt_example.c +++ b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_interrupt_example.c @@ -99,7 +99,7 @@ * indicating that this is the last DMA transfer (and the only one). */ #define BIT_STREAM_LOCATION 0x00400001 /* Bitstream location */ -#define BIT_STREAM_SIZE_WORDS 0xB0C50 /* Size in Words (32 bit)*/ +#define BIT_STREAM_SIZE_WORDS 0xF6EC0 /* Size in Words (32 bit)*/ /* * SLCR registers @@ -160,9 +160,11 @@ int main(void) Status = XDcfgInterruptExample(&IntcInstance, &DcfgInstance, DCFG_DEVICE_ID, DCFG_INTR_ID); if (Status != XST_SUCCESS) { + xil_printf("Dcfg Interrupt Example Test Failed\r\n"); return XST_FAILURE; } + xil_printf("Successfully ran Dcfg Interrupt Example Test\r\n"); return XST_SUCCESS; } diff --git a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_polled_example.c b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_polled_example.c index 88adc123..7b4d2a60 100755 --- a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_polled_example.c +++ b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_polled_example.c @@ -91,7 +91,7 @@ * indicating that this is the last DMA transfer (and the only one). */ #define BIT_STREAM_LOCATION 0x00400001 /* Bitstream location */ -#define BIT_STREAM_SIZE_WORDS 0xB0C50 /* Size in Words (32 bit)*/ +#define BIT_STREAM_SIZE_WORDS 0xF6EC0 /* Size in Words (32 bit)*/ /* * SLCR registers @@ -143,9 +143,11 @@ int main(void) */ Status = XDcfgPolledExample(&DcfgInstance, DCFG_DEVICE_ID); if (Status != XST_SUCCESS) { + xil_printf("Dcfg Polled Example Test Failed\r\n"); return XST_FAILURE; } + xil_printf("Successfully ran Dcfg Polled Example Test\r\n"); return XST_SUCCESS; }