Forum Discussion
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_B...
- 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
pertrl
New Contributor
2 years agoI'm using Quartus Prime Lite 22.1.2 and 23.1
With verilog it works for me like so:
Parameter | Value | Type REG_BASE_ADDR | 4002 | Hexadecimal
But something like X"4000" or 16#4000# is not a VHDL-2008 thing, or is it?