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

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 09:00 PM
Neil Steiner
Guest
 
Posts: n/a
Default `ifdef XST?

Does anybody know if XST defines any testable variables when compiling
verilog code?

Some of the compilers or simulators that I'm using have differing
$readmemh() semantics, and I'd like to be able to write something like:

`ifdef INCA
initial $readmemh("memory",configurations,0,15);
`else
`ifdef XST
initial $readmemh("memory",configurations,0,15);
`else
initial $readmemh("memory",configurations);
`endif
`endif
Reply With Quote
  #2 (permalink)  
Old 12-14-2007, 03:27 PM
johnp
Guest
 
Posts: n/a
Default Re: `ifdef XST?

On Dec 13, 12:00 pm, Neil Steiner <neil.stei...@vt.edu> wrote:
> Does anybody know if XST defines any testable variables when compiling
> verilog code?
>
> Some of the compilers or simulators that I'm using have differing
> $readmemh() semantics, and I'd like to be able to write something like:
>
> `ifdef INCA
> initial $readmemh("memory",configurations,0,15);
> `else
> `ifdef XST
> initial $readmemh("memory",configurations,0,15);
> `else
> initial $readmemh("memory",configurations);
> `endif
> `endif


If you are using the GUI flow, the synthesis Properties page allows
you to add defines. You may
need to use the advanced properties page.

Hope this helps.

John Providenza
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
Alternative for "ifdef synthesis" directive?? Viji Verilog 2 09-22-2006 02:51 PM
using ifdef James Verilog 1 11-16-2004 05:19 AM
Compilation relation between `ifdef and //synthesis translate_off Kelvin FPGA 0 07-01-2004 10:42 AM
Compilation relation between `ifdef and //synthesis translate_off Kelvin Verilog 0 07-01-2004 10:41 AM
ifdef in xst Matthew E Rosenthal Verilog 1 05-21-2004 03:32 PM


All times are GMT +1. The time now is 12: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