Skip to content

Commit b638050

Browse files
committed
Update Lab Material
1 parent bdb37c0 commit b638050

File tree

3 files changed

+59
-4
lines changed

3 files changed

+59
-4
lines changed

assignment-07/README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,58 @@
22

33
## Logic Circuits Lab 07
44

5+
### Goals
6+
7+
- How describle full adder in gate level?
8+
- How design adder-subtractor by bit scale design
9+
- Structural implementation in Verilog
10+
11+
### Pre-Report
12+
* Write verilog code for full adder in gate level.
13+
14+
* Write verilog code for signle bit adder/subtractor in gate level.
15+
16+
![ADDSUB](./raw/addsub.svg)
17+
18+
* Write verilog code for 4-bit adder/subtractor using 1-bit adder/subtractor.
19+
20+
![ADDSUB](./raw/addersubtractor.svg)
21+
22+
23+
### Grading Sources
24+
25+
* Write verilog code for full adder of pre-report section (***full_adder.v***).
26+
27+
* Write verilog code for 1-bit asser/subtractor of pre-report section (***addsub.v***).
28+
29+
* Synthesis 1-bit adder/subtractor without any error and warning.
30+
31+
* Save RTL Schematic of 1-bit adder/subtractor as a file and check its correctness.
32+
33+
* Design 4 bits adder/subtractor using 1-bit adder/subtractor and write verilog code of it (***adder_subtractor_4bit.v***).
34+
35+
* Complete testbench file of 4 bit adder/subtractor for validate the correctness of modules (***tb_adder_subtractor_4bit.v***).
36+
37+
* Synthesis 4 bit adder/subtractor without any error and warning.
38+
39+
* Write verilog code for full adder with delay (***full_adder_delay.v***)
40+
41+
| NOT | AND2 | NAND2 | OR2 | NOR2 | XOR2 | AND3 | OR3 |
42+
|-----|------|-------|-----|------|------|------|-----|
43+
| 2ns | 5ns | 5ns | 5ns | 5ns | 10ns | 5ns | 5ns |
44+
45+
* Write verilog code for deleyed version of adder subtractor using deleyed full adder (***add_sub_deley.v***)
46+
47+
* Write verilog code for deleyed version of 4 bit adder/subtractor using deleyed adder/subtractor (***adder_subtractor_4bit_deley.v***)
48+
49+
* Complete testbench file of 4 bit adder/subtractor for validate the correctness of modules (***tb_adder_subtractor_4bit.v***).
50+
51+
* Report 4 bit adder maximum delay according to delay table.
52+
53+
| NOT | AND2 | NAND2 | OR2 | NOR2 | XOR2 | AND3 | OR3 |
54+
|-----|------|-------|-----|------|------|------|-----|
55+
| 2ns | 5ns | 5ns | 5ns | 5ns | 10ns | 5ns | 5ns |
56+
57+
### Submission Sources
58+
* Source files (Grading Sources)
59+
* Waveform of testbeches that covers all signals in `testbench.png` diagram

assignment-07/adder_subtractor_4bit.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
module adder_subtractor_4bit (
2424
input [3:0] A ,
2525
input [3:0] B ,
26-
input sel , // 0: add, 1: subtract
26+
input sel , // 0: add, 1: subtract
2727
output [3:0] S ,
28-
output cout
28+
output cout
2929
);
3030

3131
/* write your code here */

assignment-07/adder_subtractor_4bit_delay.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
module adder_subtractor_4bit_delay (
2424
input [3:0] A ,
2525
input [3:0] B ,
26-
input sel , // 0: add, 1: subtract
26+
input sel , // 0: add, 1: subtract
2727
output [3:0] S ,
28-
output cout
28+
output cout
2929
);
3030

3131
/* write your code here */

0 commit comments

Comments
 (0)