From the course: Learning Verilog for FPGA Development

Unlock the full course today

Join today to access over 25,100 courses taught by industry experts.

Registers and wires

Registers and wires

- [Instructor] So far you've seen code with wires. It turns out, wires are one type of element. You may use to make connections in Verilog. The other type are registers. So, let me tell you the difference between theses types. Wires make connections between elements. They implement nets. Otherwise known as nodes in the circuit. Since wires are simply nets. They are driven by signals. They may not always have a value. So, they may have a high impedance or High-Z state. Which is neither a zero or one. But, equivalent to a floating node. Registers on the other hand. Can also make connections between elements in the code. But, registers can be a assign values. And they hold those values until the next assignment. And finally registers can drive wires. Just a quick warning! The name register is misleading. Because Verilog registers do not necessary produce. Flip flops in a FBA or ASIC implementation. Consider a wire A and…

Contents