vault backup: 2025-01-17 16:06:27
This commit is contained in:
parent
0784d7df66
commit
08dcd5104e
@ -27,10 +27,13 @@ module example1(x1, x2, s, f);
|
||||
// The first argument is the output value.
|
||||
// In this example, `k`, `g`, `h`, `f` are implicitly declared.
|
||||
// They could also be declared manually with the syntax `wire foo`, alongside the `input` and `output` declarations
|
||||
not(k, s);
|
||||
not(k, s); // You can also NOT a variable using a tilde, eg `~s`
|
||||
and(g, k, x1);
|
||||
and(h, s, x2);
|
||||
or(f, g, h);
|
||||
endmodule
|
||||
```
|
||||
|
||||
- Behavioral Verilog describes broader behavior, at a higher level
|
||||
- Structural Verilog describes how things are laid out at a logic level
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user