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: 
Highlighted
Visitor peffers
Visitor
96 Views
Registered: ‎02-11-2019

Passing RTL defines through xocc tool

It seems like this must be possible but I can't seem to find the right options.

 

I'd like to pass some preprocessor defines through xocc to vivado. xocc -D doesn't seem to get passed through and I can't find the right --xp option.

 

Can someone point me in the right direction?

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
53 Views
Registered: ‎07-16-2008

回复: Passing RTL defines through xocc tool

To pass Vivado properties, you can use the following --xp parameter.

vivado_prop:<object_type>.<object_name>.<prop_name>

e.g. 

--xp vivado_prop:run.synth_1.{STEPS.SYNTH_DESIGN.ARGS.MORE OPTIONS}={-verilog_define name=value}

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos