You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did not go in deep enough to find out whether there is a clear distinction between fixed point and arbitrary length integer.
The default choice for SystemRDL would be the Verilog notation, since a lot of the syntax is already based on Verilog.
The problem I see is, Verilog lacks a clear distinction between fixed point and arbitrary length integer.
VHDL provides the strongest standardization and the cleares distinction between types.
One option for Verilog syntax would be to just provide the signed/unsigned specifier without a range for arbitrary length integer, withe the length of the vector extracted from the field width. And for fixed point use the full type with the range.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to define a user defined property for defining the next two bit vector types.
The question is what notation to use, I will list a few options, the provided examples are for the same type.
The property would be used in VHDL/Verilog and software header code generators.
Wikipedia provides a few notations, one of them looks a good fit.
I used the Q notation before (ARM version):
VHDL provides a standardized syntax for fixed point values:
And for arbitrary length integers there is:
Verilog/SystemVerilog does not provide a standardized syntax for fixed point values, but is is common to use this:
Arbitrary length integers are defined with the common vector notation and the signed/unsigned specifier (added in Verilog 2001):
Xilinx also provides type definitions for the C++ language based HLS:
I did not go in deep enough to find out whether there is a clear distinction between fixed point and arbitrary length integer.
The default choice for SystemRDL would be the Verilog notation, since a lot of the syntax is already based on Verilog.
The problem I see is, Verilog lacks a clear distinction between fixed point and arbitrary length integer.
VHDL provides the strongest standardization and the cleares distinction between types.
One option for Verilog syntax would be to just provide the
signed
/unsigned
specifier without a range for arbitrary length integer, withe the length of the vector extracted from the field width. And for fixed point use the full type with the range.Beta Was this translation helpful? Give feedback.
All reactions