vault backup: 2025-02-03 09:54:19
This commit is contained in:
parent
ab2da117b9
commit
d697cba7ba
14
education/computer engineering/ECE2700/Verilog/Modules.md
Normal file
14
education/computer engineering/ECE2700/Verilog/Modules.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Modules are the building block through which Verilog is built.
|
||||||
|
|
||||||
|
Each module can be thought of as a black box with a series of inputs, and a series of outputs. Changing the input changes the outputs.
|
||||||
|
|
||||||
|
Module definitions are started with the `module` keyword, and closed with the `endmodule` keyword.
|
||||||
|
|
||||||
|
The general syntax of a module is as follows:
|
||||||
|
```verilog
|
||||||
|
module <name> ([port_list]);
|
||||||
|
// Contents of the module
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
// The por
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user