Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Could anyone explain this line of code?

Altera_Forum
Honored Contributor II
1,067 Views

CTRL_REG <= to_unsigned(16#0003#,DATA_WIDTH) 

 

What does the 16#0003# mean?  

 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
418 Views

it means 0003 in a hexadecimal base. In VHDL you can specify an integer value asbase#value#You can also add an exponent:base#value#E+/-exp

0 Kudos
Altera_Forum
Honored Contributor II
418 Views

Thanks daixiwen

0 Kudos
Reply