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!

AR# 23302

9.1i EDK - How do I set a signal to a constant value ?

Description

How do I assign a constant value to a signal defined in a MHS file?

Solution

In an MHS file, you can assign a constant value to a signal as follows:

PORT const1 = 0b1010

PORT const2 = 0xC

Following is a code snippet from an MHS file, for illustration:

BEGIN util_vector_logic

PARAMETER INSTANCE = bit_inv_1

PARAMETER HW_VER = 1.00.a

PARAMETER C_OPERATION = not

PARAMETER C_SIZE = 1

PORT Op1 = 0b1010

PORT Res = int_ref_sel

END

For more information, refer to the Platform Specification Format Reference Guide located at:

http://www.xilinx.com/ise/embedded/edk_docs.htm

AR# 23302
Date Created 09/04/2007
Last Updated 12/15/2012
Status Active
Type General Article