8

I'm just starting to learn Verilog. As I understand, Verilog has net datatypes.

What does net stand for?

Randomblue
  • 112,777
  • 145
  • 353
  • 547

4 Answers4

8

A net is such a data type, where you don't use it for storing values. They represent physical connections. You can think of wire as a net data type.
You can see more on nets here.

sgowd
  • 2,242
  • 22
  • 29
  • A `wire` is not a _datatype_,; it is one of a few categories of nets.Net's represent connections as opposed to variables which hold values. – dave_59 Nov 08 '20 at 17:24
7

A net is short for network, and a network is a group of devices that share a common connection, a wire in most cases here. Net's represent connections as opposed to variables which hold values. I wrote a short article to explain why Verilog has nets.

dave_59
  • 39,096
  • 3
  • 24
  • 63
1

Nets : represent structural connections between components.Nets have values continuously driven on them by the outputs of the devices to which they are connected to. i.e. nets get the output value of their drivers. If a net has no driver, it gets the value of z(high impedance).

  • Could you please elaborate more your answer adding a little more description about the solution you provide? – abarisone Jun 16 '15 at 06:35
1

IEEE 1364-2005

4.2 Nets and variables:

There are two main groups of data types: the variable data types and the net data types. These two groups differ in the way that they are assigned and hold values. They also represent different hardware structures.

4.2.1 Net declarations:

The net data types can represent physical connections between structural entities, such as gates. A net shall not store a value (except for the trireg net). Instead, its value shall be determined by the values of its drivers, such as a continuous assignment or a gate.

and the syntax table that follows says:

net_type ::= supply0 | supply1 | tri | triand | trior | tri0 | tri1 | uwire | wire | wand | wor

Interpretation

A net is a set of data types, one of which is wire.

Those data-types have in common that unlike registers they don't have memory: they are just intermediate results determined by their input. Much like the intuitive notion of wires.

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985