Forum Discussion

pertrl's avatar
pertrl
Icon for New Contributor rankNew Contributor
2 years ago
Solved

Schematic Symbol Parameter in Hex

Hello, how can I input a hexadecimal value in the parameter table of a block diagram/schematic file (.bdf)? behind the block is the following VHDL code: entity reg is generic ( constant REG_B...
  • ShengN_altera's avatar
    2 years ago

    Hi,


    Done testing. Use the following for example:

    addr : std_logic_vector(15 downto 0) := x"FFFF"


    Then change line 16 from:

    signal reg : std_logic_vector(15 downto 0) := std_logic_vector(to_unsigned(addr, 16));

    to:

    signal reg : std_logic_vector(15 downto 0) := addr;


    You'll be able to use Hexadecimal type for example value AAAA


    Thanks,

    Best Regards,

    Sheng