サーチ…


前書き

これは、VHDLでリテラルと呼ばれる定数を指定する方法を持っています

数値リテラル

   16#A8# -- hex
   2#100# -- binary
   2#1000_1001_1111_0000 -- long number, adding (optional) _ (one or more) for readability
   1234 -- decimal

列挙されたリテラル

type state_t is (START, READING, WRITING); -- user-defined enumerated type


Modified text is an extract of the original Stack Overflow Documentation
ライセンスを受けた CC BY-SA 3.0
所属していない Stack Overflow