We can model a hardware in different level of abstraction known as structural, data flow and behavioral. If you know logic diagram of the hardware, you can use structural modeling.
Structural modeling is also known as gate level modeling. The hardware is described only using logic gates.
In data flow modeling, we describe how data is flowing from input and ouput. We use assign keyword in data flow modeling. The description of AND gate using data flow modeling is given below.
This is the highest level of abstraction in Verilog modeling in which we describe hardware like an algorithm or any algorithm can be described using behavioral modeling. Hardware description of and gate is given below. For AND gate, output is 1 only when both inputs are 1. Few things to take care while hardware describing using behavioral.
Click like if you found this useful
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comments