31 lines
1.1 KiB
Markdown
Raw Normal View History

2025-02-03 13:13:54 -07:00
# Feb 3, 2025 | ECE2700; HW 2 | Boehme, James
---
2025-02-03 13:08:54 -07:00
# 1.
2025-02-03 13:13:54 -07:00
## Problem Statement:
> Describe in Verilog, a full adder that accepts the following three one bit inputs: $x$, $y$, and the carry-in bit $c$; and it generates the following two one-bit outputs: the sum bit $sum$ and the carry-out bit $cout$.
2025-02-03 13:18:54 -07:00
> **Part a)** For the first full-adder design, describe the $sum$ output using *structural* verilog, and the carry-out output $cout$ using behavioral verilog.
> **Part B)** Describe the second full-adder design using *hierarchical* Verilog. Describe the half-adder module first using *behavioral Verilog*. Then instantiate two half adders in your full adder.
> **Part C)** Create a Verilog testbench for the complete full-adder circuit. Make sure your testbench provides all input combinations for your full adder module.
2025-02-03 13:08:54 -07:00
## Given
2025-02-03 13:18:54 -07:00
The logic expressions
$$ sum = \bar{x}y\bar{c}_i + x\bar{y}\bar{c}_i +\bar{x}\bar{y}\bar{c}_i + xyc_i $$
$$ cout = xy + xc_i + yc_i $$
2025-02-03 13:08:54 -07:00
## Find
---
# <u>Solution:</u>
2025-02-03 13:18:54 -07:00
## A
---
---
# 2.
## Problem Statement
2025-02-03 13:08:54 -07:00
2025-02-03 13:18:54 -07:00
## Given
## Find
2025-02-03 13:08:54 -07:00
---
---