verilog real
时间: 2024-01-11 11:04:33 浏览: 101
verilog简介
Verilog does not have a "real" data type. The data types in Verilog are:
1. Bit: a single binary digit, which can be 0 or 1.
2. Reg: a single bit or a vector of bits that can store a value.
3. Integer: a signed or unsigned integer value.
4. Time: a 64-bit unsigned integer used to measure time.
5. Wire: a connection between two modules or blocks.
6. Tri: a tri-state buffer that can drive a wire or be in high-impedance state.
If you need to work with real numbers in Verilog, you can use fixed-point arithmetic or create your own custom data type using a reg or integer and scaling the values appropriately.
阅读全文