pertrl
New Contributor
2 years agoSchematic 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_BASE_ADDR : natural := 16#4010#; ); port ( ... ); end;
every variant I could imagine results in an error like:
Parameter | Value | Type REG_BASE_ADDR | x"4010" | Auto Error (10515): VHDL type mismatch error at reg.vhd(17): natural type does not match string literal
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