vault backup: 2025-02-03 13:23:54

This commit is contained in:
arc 2025-02-03 13:23:54 -07:00
parent 9c785ecdb9
commit 08065a130b
2 changed files with 16 additions and 5 deletions

View File

@ -18,7 +18,16 @@ $$ cout = xy + xc_i + yc_i $$
---
# <u>Solution:</u>
## A
## a)
---
## b)
---
## c)
---
---
# 2.
@ -27,4 +36,6 @@ $$ cout = xy + xc_i + yc_i $$
## Given
## Find
---
# <u>Solution</u>
---
---

View File

@ -32,24 +32,24 @@ module example1(x1, x2, s, f);
and(g, k, x1);
and(h, s, x2);
or(f, g, h);
// You can also do this
assign f = (~s & x1) | (s & x2);
endmodule
```
- Structural Verilog describes how things are laid out at a logic level.
-
```verilog
// V---V---v--v-----portlist (not ordered)
module example1(x1, x2, s, f);
// Defining the types of the various ports
input x1, x2, s;
output f;
// You can also do this
assign f = (~s & x1) | (s & x2);
// Or this
always @(a, b)
// always @(....) says "do this stuff whenever any of the values inside of @(...) change"
{s1, s0} = a + b;
endmodule
```
- Structural Verilog describes how things are laid out at a logic level
## Testbench Layout
- Define UUT module