I only know Verilog well enough to comment on it, but I know VHDL would benefit from this, too.
In Verilog numbers written default to decimal, but if prepended by 'b or 'h the number is binary or hexadecimal, respectively. 'd also works if you want to explicitly write a decimal value.
The normal way someone would write a number in Verilog is: som_var = 8'hFF.
This means the following number is 8 bits wide and is represented in hexadecimal.
I only know Verilog well enough to comment on it, but I know VHDL would benefit from this, too.
In Verilog numbers written default to decimal, but if prepended by 'b or 'h the number is binary or hexadecimal, respectively. 'd also works if you want to explicitly write a decimal value.
The normal way someone would write a number in Verilog is:
som_var = 8'hFF.This means the following number is 8 bits wide and is represented in hexadecimal.