AveryWong03 commited on
Commit
e2b37c1
·
verified ·
1 Parent(s): e3f40f6

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. aditeyabaral_DDCO-Lab-UE18CS207/candidates/alu__lib/golden_waveform.fst +0 -0
  3. aditeyabaral_DDCO-Lab-UE18CS207/candidates/alu__lib/sim.sh +6 -0
  4. aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/bugs/operator_typo/diff.patch +11 -0
  5. aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/golden_waveform.fst +0 -0
  6. aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/sim.sh +6 -0
  7. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/buggy_waveform.vcd +0 -0
  8. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/diff.patch +11 -0
  9. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/metadata.json +16 -0
  10. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/sim_log.txt +1 -0
  11. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/buggy_waveform.vcd +0 -0
  12. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/diff.patch +11 -0
  13. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/metadata.json +16 -0
  14. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/sim_log.txt +1 -0
  15. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/golden_waveform.fst +0 -0
  16. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/sim.sh +6 -0
  17. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/buggy_waveform.vcd +0 -0
  18. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/diff.patch +9 -0
  19. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/metadata.json +16 -0
  20. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/sim_log.txt +1 -0
  21. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/golden_waveform.fst +0 -0
  22. aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/sim.sh +6 -0
  23. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/buggy_waveform.vcd +0 -0
  24. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/diff.patch +11 -0
  25. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/metadata.json +16 -0
  26. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/sim_log.txt +1 -0
  27. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/buggy_waveform.vcd +0 -0
  28. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/diff.patch +11 -0
  29. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/metadata.json +16 -0
  30. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/sim_log.txt +1 -0
  31. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/golden_waveform.fst +0 -0
  32. aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/sim.sh +6 -0
  33. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/buggy_waveform.vcd +0 -0
  34. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/diff.patch +11 -0
  35. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/metadata.json +16 -0
  36. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/sim_log.txt +1 -0
  37. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/buggy_waveform.vcd +0 -0
  38. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/diff.patch +11 -0
  39. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/metadata.json +16 -0
  40. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/sim_log.txt +1 -0
  41. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/golden_waveform.fst +0 -0
  42. aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/sim.sh +6 -0
  43. aditeyabaral_DDCO-Lab-UE18CS207/source/README.md +15 -0
  44. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test.v +8 -0
  45. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test.vcd +46 -0
  46. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test_obj +52 -0
  47. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/testbench.v +24 -0
  48. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/README +50 -0
  49. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/aa +633 -0
  50. aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/add.pdf +3 -0
.gitattributes CHANGED
@@ -291,3 +291,9 @@ apfaudio_eurorack-pmod/source/hardware/datasheets/ak4619vn-en-datasheet.pdf filt
291
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.5.pdf filter=lfs diff=lfs merge=lfs -text
292
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.1.pdf filter=lfs diff=lfs merge=lfs -text
293
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.3.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
291
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.5.pdf filter=lfs diff=lfs merge=lfs -text
292
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.1.pdf filter=lfs diff=lfs merge=lfs -text
293
  apfaudio_eurorack-pmod/source/hardware/schematics/eurorack-pmod-r3.3.pdf filter=lfs diff=lfs merge=lfs -text
294
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]2/add.pdf filter=lfs diff=lfs merge=lfs -text
295
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]5/a3.pdf filter=lfs diff=lfs merge=lfs -text
296
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]5/Reg_Arr.docx filter=lfs diff=lfs merge=lfs -text
297
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]6/pc.pdf filter=lfs diff=lfs merge=lfs -text
298
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]7/mproc-1.pdf filter=lfs diff=lfs merge=lfs -text
299
+ aditeyabaral_DDCO-Lab-UE18CS207/source/Week[[:space:]]9/mproc-2.pdf filter=lfs diff=lfs merge=lfs -text
aditeyabaral_DDCO-Lab-UE18CS207/candidates/alu__lib/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/alu__lib/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_alu_w3 "$SRCDIR/Week 3/tb_alu.v" "$SRCDIR/Week 3/alu.v" "$SRCDIR/Week 3/lib.v"
5
+ cd "$SRCDIR/Week 3"
6
+ vvp /tmp/sim_alu_w3 -fst
aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/bugs/operator_typo/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 2/lib.v
2
+ +++ b/Week 2/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j!=0)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/fa4__lib/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_fa4 "$SRCDIR/Week 2/tb_add.v" "$SRCDIR/Week 2/add.v" "$SRCDIR/Week 2/lib.v"
5
+ cd "$SRCDIR/Week 2"
6
+ vvp /tmp/sim_fa4 -fst
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 7/lib.v
2
+ +++ b/Week 7/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j!=0)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "inverted_condition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 7/lib.v"
6
+ ],
7
+ "bug_description": "Inverted 'j==0' condition in mux2 \u2014 select input is now inverted so i0 is chosen when j=1 and i1 when j=0, flipping all multiplexer selections throughout the design",
8
+ "signals_affected": [
9
+ "j"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "Multiplexer selection logic in mux2 appears to be inverted. When select signal `j` is asserted, output `o` continues routing from `i0` instead of switching to `i1` as expected. When `j` is de-asserted, `o` incorrectly routes from `i1` instead of `i0`. This inverted behavior is consistent across all mux2 instances in the design, causing systematic data routing errors. The issue manifests as unexpected values propagating through downstream signal paths during simulation.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/inverted_condition/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_mproc_mem.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 7/lib.v
2
+ +++ b/Week 7/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j==1)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "operator_typo",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 7/lib.v"
6
+ ],
7
+ "bug_description": "Changed comparison in mux2 from '(j==0)' to '(j==1)', inverting the select logic so i0 and i1 are swapped \u2014 when j=0 the mux now outputs i1 instead of i0",
8
+ "signals_affected": [
9
+ "o"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The mux2 module is producing incorrect outputs. When the select signal `j` is low (j=0), the output `o` is taking the value of `i1` instead of `i0`. When `j` is high (j=1), the output shows `i0` instead of `i1`. This appears to be an inversion of the expected select logic. All downstream multiplexer stages that depend on mux2 are propagating incorrect data as a result.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/bugs/operator_typo/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_mproc_mem.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__lib/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_mproc_w7 "$SRCDIR/Week 7/tb_mproc_mem.v" "$SRCDIR/Week 7/mproc_mem.v" "$SRCDIR/Week 7/mproc.v" "$SRCDIR/Week 7/alu.v" "$SRCDIR/Week 7/reg_alu.v" "$SRCDIR/Week 7/pc.v" "$SRCDIR/Week 7/lib.v"
5
+ cd "$SRCDIR/Week 7"
6
+ vvp /tmp/sim_mproc_w7 -fst
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/diff.patch ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 7/mproc_mem.v
2
+ +++ b/Week 7/mproc_mem.v
3
+ @@ -1,5 +1,5 @@
4
+ module ram_128_16 (input wire clk, reset, wr, input wire [6:0] addr, input wire [15:0] din, output wire [15:0] dout);
5
+ - reg [0:127] ram [15:0];
6
+ + reg [0:125] ram [15:0];
7
+
8
+ initial begin
9
+ ram[0]=16'o000100;
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "wrong_bitwidth",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 7/mproc_mem.v"
6
+ ],
7
+ "bug_description": "Truncated 'ram' register from [0:127] (128 bits) to [0:125] (126 bits), losing the 2 least-significant bit positions and causing silent truncation of stored values",
8
+ "signals_affected": [
9
+ "ram"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The RAM module exhibits data corruption during write/read cycles. When data is written to the RAM via the din signal, subsequent reads from the same address via dout return incorrect values with the upper bits of the stored data silently truncated or lost. This truncation occurs consistently across all memory addresses and prevents stored values from matching what was originally written. The issue suggests a width mismatch in the RAM storage declaration.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/bugs/wrong_bitwidth/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_mproc_mem.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/mproc_mem__mproc_mem/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_mproc_w7 "$SRCDIR/Week 7/tb_mproc_mem.v" "$SRCDIR/Week 7/mproc_mem.v" "$SRCDIR/Week 7/mproc.v" "$SRCDIR/Week 7/alu.v" "$SRCDIR/Week 7/reg_alu.v" "$SRCDIR/Week 7/pc.v" "$SRCDIR/Week 7/lib.v"
5
+ cd "$SRCDIR/Week 7"
6
+ vvp /tmp/sim_mproc_w7 -fst
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 6/lib.v
2
+ +++ b/Week 6/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j!=0)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "inverted_condition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 6/lib.v"
6
+ ],
7
+ "bug_description": "Inverted 'j==0' condition in mux2 to 'j!=0' \u2014 mux now selects i0 when select is high and i1 when select is low, swapping all multiplexer selections throughout the design",
8
+ "signals_affected": [
9
+ "j"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The mux2 module appears to have inverted select logic. Waveform analysis shows that when the select signal `j` is high, the output `o` is incorrectly routing the `i1` input instead of `i0`. Conversely, when `j` is low, the output selects `i0` instead of `i1`. This inversion is causing all downstream logic dependent on mux2 to receive incorrect data routing. Testbench results show consistent signal mismatches that correlate directly with the select signal behavior, suggesting the multiplexer's control logic is backwards throughout the design.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/inverted_condition/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_pc.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 6/lib.v
2
+ +++ b/Week 6/lib.v
3
+ @@ -11,7 +11,7 @@
4
+ endmodule
5
+
6
+ module xor2 (input wire i0, i1, output wire o);
7
+ - assign o = i0 ^ i1;
8
+ + assign o = i0 & i1;
9
+ endmodule
10
+
11
+ module nand2 (input wire i0, i1, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "operator_typo",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 6/lib.v"
6
+ ],
7
+ "bug_description": "Changed '^' to '&' in xor2 module output expression \u2014 bitwise AND instead of XOR, causing all XOR-based logic (adders, parity, etc.) to compute incorrect results",
8
+ "signals_affected": [
9
+ "o"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The xor2 module is producing incorrect output values during simulation. Waveform analysis shows that signal o does not behave according to the XOR truth table\u2014specifically, when both inputs are 1, the output should be 0 but it asserts to 1; when inputs differ, the output should be 1 but it remains 0. This is causing failures in dependent logic chains that rely on XOR operations, particularly in arithmetic and parity calculations. The mismatch persists across all test vectors and suggests a fundamental error in the module's logic implementation.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/bugs/operator_typo/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_pc.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/pc__lib/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_pc "$SRCDIR/Week 6/tb_pc.v" "$SRCDIR/Week 6/pc.v" "$SRCDIR/Week 6/lib.v"
5
+ cd "$SRCDIR/Week 6"
6
+ vvp /tmp/sim_pc -fst
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 5/lib.v
2
+ +++ b/Week 5/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j!=0)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "inverted_condition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 5/lib.v"
6
+ ],
7
+ "bug_description": "Inverted 'j==0' condition in mux2 \u2014 selector logic is flipped so i0 is selected when j is non-zero and i1 when j is zero",
8
+ "signals_affected": [
9
+ "j"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The mux2 multiplexer module is not functioning correctly. Waveform analysis shows that when the select signal j is 0, the output o is driven by i1 instead of i0, and when j is 1, the output is driven by i0 instead of i1. The selector logic appears to be inverted compared to the expected behavior. This causes incorrect propagation of data through all downstream logic that depends on this multiplexer, leading to incorrect simulation results.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/inverted_condition/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_reg_alu.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/buggy_waveform.vcd ADDED
The diff for this file is too large to render. See raw diff
 
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Week 5/lib.v
2
+ +++ b/Week 5/lib.v
3
+ @@ -69,7 +69,7 @@
4
+ endmodule
5
+
6
+ module mux2 (input wire i0, i1, j, output wire o);
7
+ - assign o = (j==0)?i0:i1;
8
+ + assign o = (j==1)?i0:i1;
9
+ endmodule
10
+
11
+ module mux4 (input wire [0:3] i, input wire j1, j0, output wire o);
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "operator_typo",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Week 5/lib.v"
6
+ ],
7
+ "bug_description": "Changed '==' to '!=' in mux2 select condition \u2014 when j==0 now selects i1 instead of i0, inverting the mux selection logic throughout the entire design",
8
+ "signals_affected": [
9
+ "o"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "During functional simulation, the output of mux2 is not responding correctly to the select signal `j`. When `j` is low (should route `i0` to output `o`), the output instead shows `i1`. Conversely, when `j` is high, `i1` should appear on `o` but `i0` is being selected instead. This inverted mux behavior is propagating through the design, causing multiple downstream logic blocks to receive incorrect data values at critical pipeline stages. Verification tests are failing consistently due to this selection logic anomaly.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.vcd",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/bugs/operator_typo/sim_log.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ FST info: dumpfile tb_reg_alu.fst opened for output.
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/golden_waveform.fst ADDED
aditeyabaral_DDCO-Lab-UE18CS207/candidates/reg_alu__lib/sim.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_reg_alu "$SRCDIR/Week 5/tb_reg_alu.v" "$SRCDIR/Week 5/reg_alu.v" "$SRCDIR/Week 5/alu.v" "$SRCDIR/Week 5/lib.v"
5
+ cd "$SRCDIR/Week 5"
6
+ vvp /tmp/sim_reg_alu -fst
aditeyabaral_DDCO-Lab-UE18CS207/source/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DDCO-Lab-UE18CS207
2
+ A repository containing the source codes for the Digital Design and Computer Organization Laboratory course (UE18CS2) at PES University.
3
+
4
+ # Compilation
5
+
6
+ Use the following commands to compile the files with the testbench and create the image:
7
+
8
+ ```
9
+ iverilog -o <output image name> <filename>.v <testbench>.v
10
+ vvp <image name>
11
+ ```
12
+
13
+ Finally, view the waveform using:
14
+
15
+ ```gtkwave <image name>.vcd```
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test.v ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ module test(a,b,y1,y2,y3);
2
+ input a;
3
+ input b;
4
+ output y1,y2,y3;
5
+ assign y1 = a|b;
6
+ assign y2 = a&b;
7
+ assign y3 = y1|y2;
8
+ endmodule
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test.vcd ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $date
2
+ Sat Aug 17 15:31:32 2019
3
+ $end
4
+ $version
5
+ Icarus Verilog
6
+ $end
7
+ $timescale
8
+ 1s
9
+ $end
10
+ $scope module testbench $end
11
+ $var wire 1 ! o $end
12
+ $var reg 1 " i1 $end
13
+ $var reg 1 # i2 $end
14
+ $scope module my_gate $end
15
+ $var wire 1 $ a $end
16
+ $var wire 1 % b $end
17
+ $var wire 1 ! y1 $end
18
+ $var wire 1 ! y2 $end
19
+ $var wire 1 ! y3 $end
20
+ $upscope $end
21
+ $upscope $end
22
+ $enddefinitions $end
23
+ #0
24
+ $dumpvars
25
+ 0%
26
+ 0$
27
+ 0#
28
+ 0"
29
+ x!
30
+ $end
31
+ #5
32
+ 1#
33
+ 1%
34
+ #10
35
+ 0#
36
+ 0%
37
+ 1"
38
+ 1$
39
+ #15
40
+ 1#
41
+ 1%
42
+ #20
43
+ 0#
44
+ 0%
45
+ 0"
46
+ 0$
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/Test_obj ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /usr/bin/vvp
2
+ :ivl_version "0.9.7 " "(v0_9_7)";
3
+ :vpi_time_precision + 0;
4
+ :vpi_module "system";
5
+ :vpi_module "v2005_math";
6
+ :vpi_module "va_math";
7
+ S_0xac6b40 .scope module, "testbench" "testbench" 2 1;
8
+ .timescale 0 0;
9
+ v0xafad60_0 .var "i1", 0 0;
10
+ v0xafade0_0 .var "i2", 0 0;
11
+ RS_0x7f912f887078 .resolv tri, L_0xafaf10, L_0xafb050, L_0xafb0b0, C4<z>;
12
+ v0xafae90_0 .net8 "o", 0 0, RS_0x7f912f887078; 3 drivers
13
+ S_0xac7210 .scope module, "my_gate" "test" 2 4, 3 1, S_0xac6b40;
14
+ .timescale 0 0;
15
+ L_0xafaf10 .functor OR 1, v0xafad60_0, v0xafade0_0, C4<0>, C4<0>;
16
+ L_0xafb050 .functor AND 1, v0xafad60_0, v0xafade0_0, C4<1>, C4<1>;
17
+ L_0xafb0b0 .functor OR 1, RS_0x7f912f887078, RS_0x7f912f887078, C4<0>, C4<0>;
18
+ v0xac6f60_0 .net "a", 0 0, v0xafad60_0; 1 drivers
19
+ v0xafaa70_0 .net "b", 0 0, v0xafade0_0; 1 drivers
20
+ v0xafab10_0 .alias "y1", 0 0, v0xafae90_0;
21
+ v0xafabb0_0 .alias "y2", 0 0, v0xafae90_0;
22
+ v0xafac90_0 .alias "y3", 0 0, v0xafae90_0;
23
+ .scope S_0xac6b40;
24
+ T_0 ;
25
+ %vpi_call 2 5 "$dumpfile", "Test.vcd";
26
+ %vpi_call 2 6 "$dumpvars", 1'sb0, S_0xac6b40;
27
+ %end;
28
+ .thread T_0;
29
+ .scope S_0xac6b40;
30
+ T_1 ;
31
+ %set/v v0xafad60_0, 0, 1;
32
+ %set/v v0xafade0_0, 0, 1;
33
+ %delay 5, 0;
34
+ %set/v v0xafad60_0, 0, 1;
35
+ %set/v v0xafade0_0, 1, 1;
36
+ %delay 5, 0;
37
+ %set/v v0xafad60_0, 1, 1;
38
+ %set/v v0xafade0_0, 0, 1;
39
+ %delay 5, 0;
40
+ %set/v v0xafad60_0, 1, 1;
41
+ %set/v v0xafade0_0, 1, 1;
42
+ %delay 5, 0;
43
+ %set/v v0xafad60_0, 0, 1;
44
+ %set/v v0xafade0_0, 0, 1;
45
+ %end;
46
+ .thread T_1;
47
+ # The file index is used to find the file name in the following table.
48
+ :file_names 4;
49
+ "N/A";
50
+ "<interactive>";
51
+ "testbench.v";
52
+ "Test.v";
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 1/testbench.v ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module testbench;
2
+ wire o;
3
+ reg i1,i2;
4
+ test my_gate(.a(i1),.b(i2),.y1(o),.y2(o),.y3(o));
5
+ initial begin $dumpfile("Test.vcd");
6
+ $dumpvars(0,testbench);
7
+ end
8
+ initial begin
9
+ i1=1'b0;
10
+ i2=1'b0;
11
+ #5
12
+ i1=1'b0;
13
+ i2=1'b1;
14
+ #5
15
+ i1=1'b1;
16
+ i2=1'b0;
17
+ #5
18
+ i1=1'b1;
19
+ i2=1'b1;
20
+ #5
21
+ i1=1'b0;
22
+ i2=1'b0;
23
+ end
24
+ endmodule
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/README ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * Simulate
2
+
3
+ Run the commands:
4
+
5
+ iverilog -o tb_alu lib.v alu.v tb_alu.v
6
+ vvp tb_alu
7
+
8
+ Above commands should produce the tb_alu.vcd file.
9
+
10
+ * View waveforms
11
+
12
+ Run the command:
13
+
14
+ gtkwave tb_alu.vcd
15
+
16
+ Navigate the module hierarchy in the upper left window. Select
17
+ signals to be viewed in the lower left window. To view the selected
18
+ waveforms, drag and drop them into the panel on the left of the
19
+ window on the right.
20
+
21
+ * Testbench
22
+
23
+ The inputs to the alu can be changed by modifying the test vectors
24
+ specified on lines 14 to 21 of tb_alu.v. Additional test vectors can
25
+ also be added. Be sure to change value of TESTVECS on line 2 if
26
+ number of test vectors is modified.
27
+
28
+ * Tips
29
+
30
+ - Use ctrl+click or shift+click to select multiple signals for drag
31
+ and drop in the lower left window
32
+
33
+ - On the toolbar to the left of the '+' button is the 'zoom fit'
34
+ button. Use it to fit the entire length of the waveforms into the
35
+ waveform window. The '+' and '-' buttons can be used to zoom in
36
+ and out.
37
+
38
+ - Right clicking on symbol names in the left panel of the waveform
39
+ window can be used to change the format of the signals, and also
40
+ group signals together.
41
+
42
+ - Double clicking on vector symbol names in the left panel of the
43
+ waveform window shows individual waveform for each signal forming
44
+ the vector.
45
+
46
+ - After resimulating (re-executing iverilog and vvp) it is not
47
+ necessary to close and restart gtkwave. The updated VCD file can
48
+ be loaded into the currently running gtkwave by selecting the
49
+ 'Reload Waveform' entry under the File menu (keystroke:
50
+ shift+ctrl+r).
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/aa ADDED
@@ -0,0 +1,633 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /usr/bin/vvp
2
+ :ivl_version "0.9.7 " "(v0_9_7)";
3
+ :vpi_time_precision - 10;
4
+ :vpi_module "system";
5
+ :vpi_module "v2005_math";
6
+ :vpi_module "va_math";
7
+ S_0x2550a40 .scope module, "and3" "and3" 2 35;
8
+ .timescale 0 0;
9
+ v0x257bbc0_0 .net "i0", 0 0, C4<z>; 0 drivers
10
+ v0x257bc70_0 .net "i1", 0 0, C4<z>; 0 drivers
11
+ v0x257bd20_0 .net "i2", 0 0, C4<z>; 0 drivers
12
+ v0x257bdd0_0 .net "o", 0 0, L_0x258ae80; 1 drivers
13
+ v0x257beb0_0 .net "t", 0 0, L_0x258ad80; 1 drivers
14
+ S_0x257b8c0 .scope module, "and2_0" "and2" 2 37, 2 5, S_0x2550a40;
15
+ .timescale 0 0;
16
+ L_0x258ad80 .functor AND 1, C4<z>, C4<z>, C4<1>, C4<1>;
17
+ v0x257b9b0_0 .alias "i0", 0 0, v0x257bbc0_0;
18
+ v0x257ba70_0 .alias "i1", 0 0, v0x257bc70_0;
19
+ v0x257bb10_0 .alias "o", 0 0, v0x257beb0_0;
20
+ S_0x25654d0 .scope module, "and2_1" "and2" 2 38, 2 5, S_0x2550a40;
21
+ .timescale 0 0;
22
+ L_0x258ae80 .functor AND 1, C4<z>, L_0x258ad80, C4<1>, C4<1>;
23
+ v0x2553280_0 .alias "i0", 0 0, v0x257bd20_0;
24
+ v0x257b780_0 .alias "i1", 0 0, v0x257beb0_0;
25
+ v0x257b820_0 .alias "o", 0 0, v0x257bdd0_0;
26
+ S_0x2551ea0 .scope module, "mux8" "mux8" 2 82;
27
+ .timescale 0 0;
28
+ v0x257f490_0 .net "i", 0 7, C4<zzzzzzzz>; 0 drivers
29
+ v0x257f530_0 .net "j0", 0 0, C4<z>; 0 drivers
30
+ v0x257f5b0_0 .net "j1", 0 0, C4<z>; 0 drivers
31
+ v0x257f6c0_0 .net "j2", 0 0, C4<z>; 0 drivers
32
+ v0x257f740_0 .net "o", 0 0, L_0x258d5c0; 1 drivers
33
+ v0x257f7c0_0 .net "t0", 0 0, L_0x258be80; 1 drivers
34
+ v0x257f880_0 .net "t1", 0 0, L_0x258cfa0; 1 drivers
35
+ L_0x258c0d0 .part C4<zzzzzzzz>, 4, 4;
36
+ L_0x258d1f0 .part C4<zzzzzzzz>, 0, 4;
37
+ S_0x257dd50 .scope module, "mux4_0" "mux4" 2 84, 2 75, S_0x2551ea0;
38
+ .timescale 0 0;
39
+ v0x257f060_0 .net "i", 0 3, L_0x258c0d0; 1 drivers
40
+ v0x257f120_0 .alias "j0", 0 0, v0x257f5b0_0;
41
+ v0x257f1a0_0 .alias "j1", 0 0, v0x257f6c0_0;
42
+ v0x257f220_0 .alias "o", 0 0, v0x257f7c0_0;
43
+ v0x257f2f0_0 .net "t0", 0 0, L_0x258b230; 1 drivers
44
+ v0x257f3c0_0 .net "t1", 0 0, L_0x258b880; 1 drivers
45
+ L_0x258b320 .part L_0x258c0d0, 3, 1;
46
+ L_0x258b410 .part L_0x258c0d0, 2, 1;
47
+ L_0x258b970 .part L_0x258c0d0, 1, 1;
48
+ L_0x258ba60 .part L_0x258c0d0, 0, 1;
49
+ S_0x257ea10 .scope module, "mux2_0" "mux2" 2 77, 2 71, S_0x257dd50;
50
+ .timescale 0 0;
51
+ v0x257eb00_0 .net *"_s0", 1 0, L_0x258b010; 1 drivers
52
+ v0x257eba0_0 .net *"_s3", 0 0, C4<0>; 1 drivers
53
+ v0x257ec40_0 .net *"_s4", 1 0, C4<00>; 1 drivers
54
+ v0x257ece0_0 .net *"_s6", 0 0, L_0x258b0f0; 1 drivers
55
+ v0x257ed90_0 .net "i0", 0 0, L_0x258b320; 1 drivers
56
+ v0x257ee30_0 .net "i1", 0 0, L_0x258b410; 1 drivers
57
+ v0x257eed0_0 .alias "j", 0 0, v0x257f6c0_0;
58
+ v0x257efe0_0 .alias "o", 0 0, v0x257f2f0_0;
59
+ L_0x258b010 .concat [ 1 1 0 0], C4<z>, C4<0>;
60
+ L_0x258b0f0 .cmp/eq 2, L_0x258b010, C4<00>;
61
+ L_0x258b230 .functor MUXZ 1, L_0x258b410, L_0x258b320, L_0x258b0f0, C4<>;
62
+ S_0x257e430 .scope module, "mux2_1" "mux2" 2 78, 2 71, S_0x257dd50;
63
+ .timescale 0 0;
64
+ v0x257e520_0 .net *"_s0", 1 0, L_0x258b550; 1 drivers
65
+ v0x257e5c0_0 .net *"_s3", 0 0, C4<0>; 1 drivers
66
+ v0x257e660_0 .net *"_s4", 1 0, C4<00>; 1 drivers
67
+ v0x257e700_0 .net *"_s6", 0 0, L_0x258b740; 1 drivers
68
+ v0x257e780_0 .net "i0", 0 0, L_0x258b970; 1 drivers
69
+ v0x257e820_0 .net "i1", 0 0, L_0x258ba60; 1 drivers
70
+ v0x257e8c0_0 .alias "j", 0 0, v0x257f6c0_0;
71
+ v0x257e940_0 .alias "o", 0 0, v0x257f3c0_0;
72
+ L_0x258b550 .concat [ 1 1 0 0], C4<z>, C4<0>;
73
+ L_0x258b740 .cmp/eq 2, L_0x258b550, C4<00>;
74
+ L_0x258b880 .functor MUXZ 1, L_0x258ba60, L_0x258b970, L_0x258b740, C4<>;
75
+ S_0x257de40 .scope module, "mux2_2" "mux2" 2 79, 2 71, S_0x257dd50;
76
+ .timescale 0 0;
77
+ v0x257df30_0 .net *"_s0", 1 0, L_0x258bbe0; 1 drivers
78
+ v0x257dfb0_0 .net *"_s3", 0 0, C4<0>; 1 drivers
79
+ v0x257e030_0 .net *"_s4", 1 0, C4<00>; 1 drivers
80
+ v0x257e0b0_0 .net *"_s6", 0 0, L_0x258bd40; 1 drivers
81
+ v0x257e130_0 .alias "i0", 0 0, v0x257f2f0_0;
82
+ v0x257e1b0_0 .alias "i1", 0 0, v0x257f3c0_0;
83
+ v0x257e290_0 .alias "j", 0 0, v0x257f5b0_0;
84
+ v0x257e360_0 .alias "o", 0 0, v0x257f7c0_0;
85
+ L_0x258bbe0 .concat [ 1 1 0 0], C4<z>, C4<0>;
86
+ L_0x258bd40 .cmp/eq 2, L_0x258bbe0, C4<00>;
87
+ L_0x258be80 .functor MUXZ 1, L_0x258b880, L_0x258b230, L_0x258bd40, C4<>;
88
+ S_0x257c560 .scope module, "mux4_1" "mux4" 2 85, 2 75, S_0x2551ea0;
89
+ .timescale 0 0;
90
+ v0x257d8e0_0 .net "i", 0 3, L_0x258d1f0; 1 drivers
91
+ v0x257d960_0 .alias "j0", 0 0, v0x257f5b0_0;
92
+ v0x257da10_0 .alias "j1", 0 0, v0x257f6c0_0;
93
+ v0x257dae0_0 .alias "o", 0 0, v0x257f880_0;
94
+ v0x257dbb0_0 .net "t0", 0 0, L_0x258c3d0; 1 drivers
95
+ v0x257dc80_0 .net "t1", 0 0, L_0x258c970; 1 drivers
96
+ L_0x258c4c0 .part L_0x258d1f0, 3, 1;
97
+ L_0x258c5b0 .part L_0x258d1f0, 2, 1;
98
+ L_0x258ca60 .part L_0x258d1f0, 1, 1;
99
+ L_0x258cb50 .part L_0x258d1f0, 0, 1;
100
+ S_0x257d2a0 .scope module, "mux2_0" "mux2" 2 77, 2 71, S_0x257c560;
101
+ .timescale 0 0;
102
+ v0x257d390_0 .net *"_s0", 1 0, L_0x258c170; 1 drivers
103
+ v0x257d430_0 .net *"_s3", 0 0, C4<0>; 1 drivers
104
+ v0x257d4d0_0 .net *"_s4", 1 0, C4<00>; 1 drivers
105
+ v0x257d570_0 .net *"_s6", 0 0, L_0x258c290; 1 drivers
106
+ v0x257d620_0 .net "i0", 0 0, L_0x258c4c0; 1 drivers
107
+ v0x257d6c0_0 .net "i1", 0 0, L_0x258c5b0; 1 drivers
108
+ v0x257d760_0 .alias "j", 0 0, v0x257f6c0_0;
109
+ v0x257d7e0_0 .alias "o", 0 0, v0x257dbb0_0;
110
+ L_0x258c170 .concat [ 1 1 0 0], C4<z>, C4<0>;
111
+ L_0x258c290 .cmp/eq 2, L_0x258c170, C4<00>;
112
+ L_0x258c3d0 .functor MUXZ 1, L_0x258c5b0, L_0x258c4c0, L_0x258c290, C4<>;
113
+ S_0x257cc70 .scope module, "mux2_1" "mux2" 2 78, 2 71, S_0x257c560;
114
+ .timescale 0 0;
115
+ v0x257cd60_0 .net *"_s0", 1 0, L_0x258c6f0; 1 drivers
116
+ v0x257ce00_0 .net *"_s3", 0 0, C4<0>; 1 drivers
117
+ v0x257cea0_0 .net *"_s4", 1 0, C4<00>; 1 drivers
118
+ v0x257cf40_0 .net *"_s6", 0 0, L_0x258c880; 1 drivers
119
+ v0x257cff0_0 .net "i0", 0 0, L_0x258ca60; 1 drivers
120
+ v0x257d090_0 .net "i1", 0 0, L_0x258cb50; 1 drivers
121
+ v0x257d130_0 .alias "j", 0 0, v0x257f6c0_0;
122
+ v0x257d1d0_0 .alias "o", 0 0, v0x257dc80_0;
123
+ L_0x258c6f0 .concat [ 1 1 0 0], C4<z>, C4<0>;
124
+ L_0x258c880 .cmp/eq 2, L_0x258c6f0, C4<00>;
125
+ L_0x258c970 .functor MUXZ 1, L_0x258cb50, L_0x258ca60, L_0x258c880, C4<>;
126
+ S_0x257c650 .scope module, "mux2_2" "mux2" 2 79, 2 71, S_0x257c560;
127
+ .timescale 0 0;
128
+ v0x257c740_0 .net *"_s0", 1 0, L_0x258ccd0; 1 drivers
129
+ v0x257c800_0 .net *"_s3", 0 0, C4<0>; 1 drivers
130
+ v0x257c8a0_0 .net *"_s4", 1 0, C4<00>; 1 drivers
131
+ v0x257c940_0 .net *"_s6", 0 0, L_0x258ce60; 1 drivers
132
+ v0x257c9c0_0 .alias "i0", 0 0, v0x257dbb0_0;
133
+ v0x257ca60_0 .alias "i1", 0 0, v0x257dc80_0;
134
+ v0x257cb00_0 .alias "j", 0 0, v0x257f5b0_0;
135
+ v0x257cba0_0 .alias "o", 0 0, v0x257f880_0;
136
+ L_0x258ccd0 .concat [ 1 1 0 0], C4<z>, C4<0>;
137
+ L_0x258ce60 .cmp/eq 2, L_0x258ccd0, C4<00>;
138
+ L_0x258cfa0 .functor MUXZ 1, L_0x258c970, L_0x258c3d0, L_0x258ce60, C4<>;
139
+ S_0x257bf80 .scope module, "mux2_0" "mux2" 2 86, 2 71, S_0x2551ea0;
140
+ .timescale 0 0;
141
+ v0x257c070_0 .net *"_s0", 1 0, L_0x258d290; 1 drivers
142
+ v0x257c0f0_0 .net *"_s3", 0 0, C4<0>; 1 drivers
143
+ v0x257c170_0 .net *"_s4", 1 0, C4<00>; 1 drivers
144
+ v0x257c1f0_0 .net *"_s6", 0 0, L_0x258d480; 1 drivers
145
+ v0x257c270_0 .alias "i0", 0 0, v0x257f7c0_0;
146
+ v0x257c2f0_0 .alias "i1", 0 0, v0x257f880_0;
147
+ v0x257c3d0_0 .alias "j", 0 0, v0x257f530_0;
148
+ v0x257c470_0 .alias "o", 0 0, v0x257f740_0;
149
+ L_0x258d290 .concat [ 1 1 0 0], C4<z>, C4<0>;
150
+ L_0x258d480 .cmp/eq 2, L_0x258d290, C4<00>;
151
+ L_0x258d5c0 .functor MUXZ 1, L_0x258cfa0, L_0x258be80, L_0x258d480, C4<>;
152
+ S_0x2555950 .scope module, "nand3" "nand3" 2 53;
153
+ .timescale 0 0;
154
+ v0x2580400_0 .net "i0", 0 0, C4<z>; 0 drivers
155
+ v0x2580480_0 .net "i1", 0 0, C4<z>; 0 drivers
156
+ v0x2580500_0 .net "i2", 0 0, C4<z>; 0 drivers
157
+ v0x25805d0_0 .net "o", 0 0, L_0x258d840; 1 drivers
158
+ v0x25806a0_0 .net "t", 0 0, L_0x258c820; 1 drivers
159
+ S_0x2580140 .scope module, "and2_0" "and2" 2 55, 2 5, S_0x2555950;
160
+ .timescale 0 0;
161
+ L_0x258c820 .functor AND 1, C4<z>, C4<z>, C4<1>, C4<1>;
162
+ v0x2580230_0 .alias "i0", 0 0, v0x2580400_0;
163
+ v0x25802b0_0 .alias "i1", 0 0, v0x2580480_0;
164
+ v0x2580330_0 .alias "o", 0 0, v0x25806a0_0;
165
+ S_0x257f900 .scope module, "nand2_1" "nand2" 2 56, 2 17, S_0x2555950;
166
+ .timescale 0 0;
167
+ v0x257feb0_0 .alias "i0", 0 0, v0x2580500_0;
168
+ v0x257ff30_0 .alias "i1", 0 0, v0x25806a0_0;
169
+ v0x257ffe0_0 .alias "o", 0 0, v0x25805d0_0;
170
+ v0x2580090_0 .net "t", 0 0, L_0x258d7e0; 1 drivers
171
+ S_0x257fbe0 .scope module, "and2_0" "and2" 2 19, 2 5, S_0x257f900;
172
+ .timescale 0 0;
173
+ L_0x258d7e0 .functor AND 1, C4<z>, L_0x258c820, C4<1>, C4<1>;
174
+ v0x257fcd0_0 .alias "i0", 0 0, v0x2580500_0;
175
+ v0x257fd90_0 .alias "i1", 0 0, v0x25806a0_0;
176
+ v0x257fe30_0 .alias "o", 0 0, v0x2580090_0;
177
+ S_0x257f9f0 .scope module, "invert_0" "invert" 2 20, 2 1, S_0x257f900;
178
+ .timescale 0 0;
179
+ v0x257fae0_0 .alias "i", 0 0, v0x2580090_0;
180
+ v0x257fb60_0 .alias "o", 0 0, v0x25805d0_0;
181
+ L_0x258d840 .reduce/nor L_0x258d7e0;
182
+ S_0x2557e70 .scope module, "nor3" "nor3" 2 47;
183
+ .timescale 0 0;
184
+ v0x25812a0_0 .net "i0", 0 0, C4<z>; 0 drivers
185
+ v0x2581320_0 .net "i1", 0 0, C4<z>; 0 drivers
186
+ v0x25813a0_0 .net "i2", 0 0, C4<z>; 0 drivers
187
+ v0x2581470_0 .net "o", 0 0, L_0x258dac0; 1 drivers
188
+ v0x2581540_0 .net "t", 0 0, L_0x258d970; 1 drivers
189
+ S_0x2580fe0 .scope module, "or2_0" "or2" 2 49, 2 9, S_0x2557e70;
190
+ .timescale 0 0;
191
+ L_0x258d970 .functor OR 1, C4<z>, C4<z>, C4<0>, C4<0>;
192
+ v0x25810d0_0 .alias "i0", 0 0, v0x25812a0_0;
193
+ v0x2581150_0 .alias "i1", 0 0, v0x2581320_0;
194
+ v0x25811d0_0 .alias "o", 0 0, v0x2581540_0;
195
+ S_0x2580720 .scope module, "nor2_0" "nor2" 2 50, 2 23, S_0x2557e70;
196
+ .timescale 0 0;
197
+ v0x2580cd0_0 .alias "i0", 0 0, v0x25813a0_0;
198
+ v0x2580d80_0 .alias "i1", 0 0, v0x2581540_0;
199
+ v0x2580e30_0 .alias "o", 0 0, v0x2581470_0;
200
+ v0x2580ee0_0 .net "t", 0 0, L_0x258da60; 1 drivers
201
+ S_0x2580a00 .scope module, "or2_0" "or2" 2 25, 2 9, S_0x2580720;
202
+ .timescale 0 0;
203
+ L_0x258da60 .functor OR 1, C4<z>, L_0x258d970, C4<0>, C4<0>;
204
+ v0x2580af0_0 .alias "i0", 0 0, v0x25813a0_0;
205
+ v0x2580bb0_0 .alias "i1", 0 0, v0x2581540_0;
206
+ v0x2580c50_0 .alias "o", 0 0, v0x2580ee0_0;
207
+ S_0x2580810 .scope module, "invert_0" "invert" 2 26, 2 1, S_0x2580720;
208
+ .timescale 0 0;
209
+ v0x2580900_0 .alias "i", 0 0, v0x2580ee0_0;
210
+ v0x2580980_0 .alias "o", 0 0, v0x2581470_0;
211
+ L_0x258dac0 .reduce/nor L_0x258da60;
212
+ S_0x2565770 .scope module, "or3" "or3" 2 41;
213
+ .timescale 0 0;
214
+ v0x2581b20_0 .net "i0", 0 0, C4<z>; 0 drivers
215
+ v0x2581bd0_0 .net "i1", 0 0, C4<z>; 0 drivers
216
+ v0x2581c80_0 .net "i2", 0 0, C4<z>; 0 drivers
217
+ v0x2581d30_0 .net "o", 0 0, L_0x258dca0; 1 drivers
218
+ v0x2581e10_0 .net "t", 0 0, L_0x258dbf0; 1 drivers
219
+ S_0x2581850 .scope module, "or2_0" "or2" 2 43, 2 9, S_0x2565770;
220
+ .timescale 0 0;
221
+ L_0x258dbf0 .functor OR 1, C4<z>, C4<z>, C4<0>, C4<0>;
222
+ v0x2581940_0 .alias "i0", 0 0, v0x2581b20_0;
223
+ v0x2581a00_0 .alias "i1", 0 0, v0x2581bd0_0;
224
+ v0x2581aa0_0 .alias "o", 0 0, v0x2581e10_0;
225
+ S_0x25815c0 .scope module, "or2_1" "or2" 2 44, 2 9, S_0x2565770;
226
+ .timescale 0 0;
227
+ L_0x258dca0 .functor OR 1, C4<z>, L_0x258dbf0, C4<0>, C4<0>;
228
+ v0x25816b0_0 .alias "i0", 0 0, v0x2581c80_0;
229
+ v0x2581730_0 .alias "i1", 0 0, v0x2581e10_0;
230
+ v0x25817b0_0 .alias "o", 0 0, v0x2581d30_0;
231
+ S_0x2565ac0 .scope module, "tb" "tb" 3 4;
232
+ .timescale -9 -10;
233
+ v0x25890d0_0 .var "cin", 0 0;
234
+ v0x2589170_0 .var "clk", 0 0;
235
+ v0x25891f0_0 .net "cout", 0 0, L_0x2590b90; 1 drivers
236
+ v0x2589270_0 .var/i "i", 31 0;
237
+ v0x25892f0_0 .var "i0", 3 0;
238
+ v0x2589370_0 .var "i1", 3 0;
239
+ RS_0x7fd74edc7578 .resolv tri, L_0x258e870, L_0x258f470, L_0x2590280, L_0x2591050;
240
+ v0x2589430_0 .net8 "o", 3 0, RS_0x7fd74edc7578; 4 drivers
241
+ v0x25894b0_0 .var "reset", 0 0;
242
+ v0x2589580 .array "test_vecs", 7 0, 8 0;
243
+ S_0x2581ee0 .scope module, "u0" "fa4" 3 24, 4 15, S_0x2565ac0;
244
+ .timescale 0 0;
245
+ v0x2588d40_0 .net "a", 3 0, v0x25892f0_0; 1 drivers
246
+ v0x2588dc0_0 .net "b", 3 0, v0x2589370_0; 1 drivers
247
+ v0x2588e40_0 .net "cin", 0 0, v0x25890d0_0; 1 drivers
248
+ v0x2588ee0_0 .alias "cout", 0 0, v0x25891f0_0;
249
+ v0x2588fb0_0 .alias "sum", 3 0, v0x2589430_0;
250
+ RS_0x7fd74edc75a8 .resolv tri, L_0x258e910, L_0x258f510, L_0x25903b0, C4<zzz>;
251
+ v0x2589030_0 .net8 "t", 2 0, RS_0x7fd74edc75a8; 3 drivers
252
+ L_0x258e6d0 .part v0x25892f0_0, 0, 1;
253
+ L_0x258e790 .part v0x2589370_0, 0, 1;
254
+ L_0x258e870 .part/pv L_0x258dfb0, 0, 1, 4;
255
+ L_0x258e910 .part/pv L_0x258e510, 0, 1, 3;
256
+ L_0x258f250 .part v0x25892f0_0, 1, 1;
257
+ L_0x258f2f0 .part v0x2589370_0, 1, 1;
258
+ L_0x258f3d0 .part RS_0x7fd74edc75a8, 0, 1;
259
+ L_0x258f470 .part/pv L_0x258eb30, 1, 1, 4;
260
+ L_0x258f510 .part/pv L_0x258f090, 1, 1, 3;
261
+ L_0x258fe90 .part v0x25892f0_0, 2, 1;
262
+ L_0x2590020 .part v0x2589370_0, 2, 1;
263
+ L_0x2590150 .part RS_0x7fd74edc75a8, 1, 1;
264
+ L_0x2590280 .part/pv L_0x258f770, 2, 1, 4;
265
+ L_0x25903b0 .part/pv L_0x258fcd0, 2, 1, 3;
266
+ L_0x2590de0 .part v0x25892f0_0, 3, 1;
267
+ L_0x2590e80 .part v0x2589370_0, 3, 1;
268
+ L_0x2590fb0 .part RS_0x7fd74edc75a8, 2, 1;
269
+ L_0x2591050 .part/pv L_0x2590630, 3, 1, 4;
270
+ S_0x2587220 .scope module, "fa0" "fulladd" 4 17, 4 2, S_0x2581ee0;
271
+ .timescale 0 0;
272
+ v0x2588620_0 .net "a", 0 0, L_0x258e6d0; 1 drivers
273
+ v0x25886a0_0 .net "b", 0 0, L_0x258e790; 1 drivers
274
+ v0x2588720_0 .net "c", 0 0, C4<0>; 1 drivers
275
+ v0x25887a0_0 .net "cout", 0 0, L_0x258e510; 1 drivers
276
+ v0x2588820_0 .net "s", 0 0, L_0x258dfb0; 1 drivers
277
+ v0x25888d0_0 .net "t0", 0 0, L_0x258de30; 1 drivers
278
+ v0x25889a0_0 .net "t1", 0 0, L_0x258e170; 1 drivers
279
+ v0x2588a70_0 .net "t2", 0 0, L_0x258e210; 1 drivers
280
+ v0x2588b90_0 .net "t3", 0 0, L_0x258e2b0; 1 drivers
281
+ v0x2588c60_0 .net "t4", 0 0, L_0x258e350; 1 drivers
282
+ S_0x2588310 .scope module, "x0" "xor2" 4 4, 2 13, S_0x2587220;
283
+ .timescale 0 0;
284
+ L_0x258de30 .functor XOR 1, L_0x258e6d0, L_0x258e790, C4<0>, C4<0>;
285
+ v0x2588400_0 .alias "i0", 0 0, v0x2588620_0;
286
+ v0x25884d0_0 .alias "i1", 0 0, v0x25886a0_0;
287
+ v0x25885a0_0 .alias "o", 0 0, v0x25888d0_0;
288
+ S_0x2588050 .scope module, "x1" "xor2" 4 5, 2 13, S_0x2587220;
289
+ .timescale 0 0;
290
+ L_0x258dfb0 .functor XOR 1, L_0x258de30, C4<0>, C4<0>, C4<0>;
291
+ v0x2588140_0 .alias "i0", 0 0, v0x25888d0_0;
292
+ v0x25881c0_0 .alias "i1", 0 0, v0x2588720_0;
293
+ v0x2588290_0 .alias "o", 0 0, v0x2588820_0;
294
+ S_0x2587db0 .scope module, "a0" "and2" 4 6, 2 5, S_0x2587220;
295
+ .timescale 0 0;
296
+ L_0x258e170 .functor AND 1, L_0x258e6d0, L_0x258e790, C4<1>, C4<1>;
297
+ v0x2587ea0_0 .alias "i0", 0 0, v0x2588620_0;
298
+ v0x2587f20_0 .alias "i1", 0 0, v0x25886a0_0;
299
+ v0x2587fa0_0 .alias "o", 0 0, v0x25889a0_0;
300
+ S_0x2587b20 .scope module, "a1" "and2" 4 7, 2 5, S_0x2587220;
301
+ .timescale 0 0;
302
+ L_0x258e210 .functor AND 1, L_0x258e6d0, C4<0>, C4<1>, C4<1>;
303
+ v0x2587c10_0 .alias "i0", 0 0, v0x2588620_0;
304
+ v0x2587cb0_0 .alias "i1", 0 0, v0x2588720_0;
305
+ v0x2587d30_0 .alias "o", 0 0, v0x2588a70_0;
306
+ S_0x2587870 .scope module, "a2" "and2" 4 8, 2 5, S_0x2587220;
307
+ .timescale 0 0;
308
+ L_0x258e2b0 .functor AND 1, L_0x258e790, C4<0>, C4<1>, C4<1>;
309
+ v0x2587960_0 .alias "i0", 0 0, v0x25886a0_0;
310
+ v0x2587a00_0 .alias "i1", 0 0, v0x2588720_0;
311
+ v0x2587aa0_0 .alias "o", 0 0, v0x2588b90_0;
312
+ S_0x25875a0 .scope module, "o1" "or2" 4 9, 2 9, S_0x2587220;
313
+ .timescale 0 0;
314
+ L_0x258e350 .functor OR 1, L_0x258e170, L_0x258e210, C4<0>, C4<0>;
315
+ v0x2587690_0 .alias "i0", 0 0, v0x25889a0_0;
316
+ v0x2587750_0 .alias "i1", 0 0, v0x2588a70_0;
317
+ v0x25877f0_0 .alias "o", 0 0, v0x2588c60_0;
318
+ S_0x2587310 .scope module, "o2" "or2" 4 10, 2 9, S_0x2587220;
319
+ .timescale 0 0;
320
+ L_0x258e510 .functor OR 1, L_0x258e2b0, L_0x258e350, C4<0>, C4<0>;
321
+ v0x2587400_0 .alias "i0", 0 0, v0x2588b90_0;
322
+ v0x2587480_0 .alias "i1", 0 0, v0x2588c60_0;
323
+ v0x2587500_0 .alias "o", 0 0, v0x25887a0_0;
324
+ S_0x2585700 .scope module, "fa1" "fulladd" 4 18, 4 2, S_0x2581ee0;
325
+ .timescale 0 0;
326
+ v0x2586b00_0 .net "a", 0 0, L_0x258f250; 1 drivers
327
+ v0x2586b80_0 .net "b", 0 0, L_0x258f2f0; 1 drivers
328
+ v0x2586c00_0 .net "c", 0 0, L_0x258f3d0; 1 drivers
329
+ v0x2586c80_0 .net "cout", 0 0, L_0x258f090; 1 drivers
330
+ v0x2586d00_0 .net "s", 0 0, L_0x258eb30; 1 drivers
331
+ v0x2586db0_0 .net "t0", 0 0, L_0x258e9b0; 1 drivers
332
+ v0x2586e80_0 .net "t1", 0 0, L_0x258ecf0; 1 drivers
333
+ v0x2586f50_0 .net "t2", 0 0, L_0x258ed90; 1 drivers
334
+ v0x2587070_0 .net "t3", 0 0, L_0x258ee30; 1 drivers
335
+ v0x2587140_0 .net "t4", 0 0, L_0x258eed0; 1 drivers
336
+ S_0x25867f0 .scope module, "x0" "xor2" 4 4, 2 13, S_0x2585700;
337
+ .timescale 0 0;
338
+ L_0x258e9b0 .functor XOR 1, L_0x258f250, L_0x258f2f0, C4<0>, C4<0>;
339
+ v0x25868e0_0 .alias "i0", 0 0, v0x2586b00_0;
340
+ v0x25869b0_0 .alias "i1", 0 0, v0x2586b80_0;
341
+ v0x2586a80_0 .alias "o", 0 0, v0x2586db0_0;
342
+ S_0x2586530 .scope module, "x1" "xor2" 4 5, 2 13, S_0x2585700;
343
+ .timescale 0 0;
344
+ L_0x258eb30 .functor XOR 1, L_0x258e9b0, L_0x258f3d0, C4<0>, C4<0>;
345
+ v0x2586620_0 .alias "i0", 0 0, v0x2586db0_0;
346
+ v0x25866a0_0 .alias "i1", 0 0, v0x2586c00_0;
347
+ v0x2586770_0 .alias "o", 0 0, v0x2586d00_0;
348
+ S_0x2586290 .scope module, "a0" "and2" 4 6, 2 5, S_0x2585700;
349
+ .timescale 0 0;
350
+ L_0x258ecf0 .functor AND 1, L_0x258f250, L_0x258f2f0, C4<1>, C4<1>;
351
+ v0x2586380_0 .alias "i0", 0 0, v0x2586b00_0;
352
+ v0x2586400_0 .alias "i1", 0 0, v0x2586b80_0;
353
+ v0x2586480_0 .alias "o", 0 0, v0x2586e80_0;
354
+ S_0x2586000 .scope module, "a1" "and2" 4 7, 2 5, S_0x2585700;
355
+ .timescale 0 0;
356
+ L_0x258ed90 .functor AND 1, L_0x258f250, L_0x258f3d0, C4<1>, C4<1>;
357
+ v0x25860f0_0 .alias "i0", 0 0, v0x2586b00_0;
358
+ v0x2586190_0 .alias "i1", 0 0, v0x2586c00_0;
359
+ v0x2586210_0 .alias "o", 0 0, v0x2586f50_0;
360
+ S_0x2585d50 .scope module, "a2" "and2" 4 8, 2 5, S_0x2585700;
361
+ .timescale 0 0;
362
+ L_0x258ee30 .functor AND 1, L_0x258f2f0, L_0x258f3d0, C4<1>, C4<1>;
363
+ v0x2585e40_0 .alias "i0", 0 0, v0x2586b80_0;
364
+ v0x2585ee0_0 .alias "i1", 0 0, v0x2586c00_0;
365
+ v0x2585f80_0 .alias "o", 0 0, v0x2587070_0;
366
+ S_0x2585a80 .scope module, "o1" "or2" 4 9, 2 9, S_0x2585700;
367
+ .timescale 0 0;
368
+ L_0x258eed0 .functor OR 1, L_0x258ecf0, L_0x258ed90, C4<0>, C4<0>;
369
+ v0x2585b70_0 .alias "i0", 0 0, v0x2586e80_0;
370
+ v0x2585c30_0 .alias "i1", 0 0, v0x2586f50_0;
371
+ v0x2585cd0_0 .alias "o", 0 0, v0x2587140_0;
372
+ S_0x25857f0 .scope module, "o2" "or2" 4 10, 2 9, S_0x2585700;
373
+ .timescale 0 0;
374
+ L_0x258f090 .functor OR 1, L_0x258ee30, L_0x258eed0, C4<0>, C4<0>;
375
+ v0x25858e0_0 .alias "i0", 0 0, v0x2587070_0;
376
+ v0x2585960_0 .alias "i1", 0 0, v0x2587140_0;
377
+ v0x25859e0_0 .alias "o", 0 0, v0x2586c80_0;
378
+ S_0x2583be0 .scope module, "fa2" "fulladd" 4 19, 4 2, S_0x2581ee0;
379
+ .timescale 0 0;
380
+ v0x2584fe0_0 .net "a", 0 0, L_0x258fe90; 1 drivers
381
+ v0x2585060_0 .net "b", 0 0, L_0x2590020; 1 drivers
382
+ v0x25850e0_0 .net "c", 0 0, L_0x2590150; 1 drivers
383
+ v0x2585160_0 .net "cout", 0 0, L_0x258fcd0; 1 drivers
384
+ v0x25851e0_0 .net "s", 0 0, L_0x258f770; 1 drivers
385
+ v0x2585290_0 .net "t0", 0 0, L_0x258f5b0; 1 drivers
386
+ v0x2585360_0 .net "t1", 0 0, L_0x258f930; 1 drivers
387
+ v0x2585430_0 .net "t2", 0 0, L_0x258f9d0; 1 drivers
388
+ v0x2585550_0 .net "t3", 0 0, L_0x258fa70; 1 drivers
389
+ v0x2585620_0 .net "t4", 0 0, L_0x258fb10; 1 drivers
390
+ S_0x2584cd0 .scope module, "x0" "xor2" 4 4, 2 13, S_0x2583be0;
391
+ .timescale 0 0;
392
+ L_0x258f5b0 .functor XOR 1, L_0x258fe90, L_0x2590020, C4<0>, C4<0>;
393
+ v0x2584dc0_0 .alias "i0", 0 0, v0x2584fe0_0;
394
+ v0x2584e90_0 .alias "i1", 0 0, v0x2585060_0;
395
+ v0x2584f60_0 .alias "o", 0 0, v0x2585290_0;
396
+ S_0x2584a10 .scope module, "x1" "xor2" 4 5, 2 13, S_0x2583be0;
397
+ .timescale 0 0;
398
+ L_0x258f770 .functor XOR 1, L_0x258f5b0, L_0x2590150, C4<0>, C4<0>;
399
+ v0x2584b00_0 .alias "i0", 0 0, v0x2585290_0;
400
+ v0x2584b80_0 .alias "i1", 0 0, v0x25850e0_0;
401
+ v0x2584c50_0 .alias "o", 0 0, v0x25851e0_0;
402
+ S_0x2584770 .scope module, "a0" "and2" 4 6, 2 5, S_0x2583be0;
403
+ .timescale 0 0;
404
+ L_0x258f930 .functor AND 1, L_0x258fe90, L_0x2590020, C4<1>, C4<1>;
405
+ v0x2584860_0 .alias "i0", 0 0, v0x2584fe0_0;
406
+ v0x25848e0_0 .alias "i1", 0 0, v0x2585060_0;
407
+ v0x2584960_0 .alias "o", 0 0, v0x2585360_0;
408
+ S_0x25844e0 .scope module, "a1" "and2" 4 7, 2 5, S_0x2583be0;
409
+ .timescale 0 0;
410
+ L_0x258f9d0 .functor AND 1, L_0x258fe90, L_0x2590150, C4<1>, C4<1>;
411
+ v0x25845d0_0 .alias "i0", 0 0, v0x2584fe0_0;
412
+ v0x2584670_0 .alias "i1", 0 0, v0x25850e0_0;
413
+ v0x25846f0_0 .alias "o", 0 0, v0x2585430_0;
414
+ S_0x2584230 .scope module, "a2" "and2" 4 8, 2 5, S_0x2583be0;
415
+ .timescale 0 0;
416
+ L_0x258fa70 .functor AND 1, L_0x2590020, L_0x2590150, C4<1>, C4<1>;
417
+ v0x2584320_0 .alias "i0", 0 0, v0x2585060_0;
418
+ v0x25843c0_0 .alias "i1", 0 0, v0x25850e0_0;
419
+ v0x2584460_0 .alias "o", 0 0, v0x2585550_0;
420
+ S_0x2583f60 .scope module, "o1" "or2" 4 9, 2 9, S_0x2583be0;
421
+ .timescale 0 0;
422
+ L_0x258fb10 .functor OR 1, L_0x258f930, L_0x258f9d0, C4<0>, C4<0>;
423
+ v0x2584050_0 .alias "i0", 0 0, v0x2585360_0;
424
+ v0x2584110_0 .alias "i1", 0 0, v0x2585430_0;
425
+ v0x25841b0_0 .alias "o", 0 0, v0x2585620_0;
426
+ S_0x2583cd0 .scope module, "o2" "or2" 4 10, 2 9, S_0x2583be0;
427
+ .timescale 0 0;
428
+ L_0x258fcd0 .functor OR 1, L_0x258fa70, L_0x258fb10, C4<0>, C4<0>;
429
+ v0x2583dc0_0 .alias "i0", 0 0, v0x2585550_0;
430
+ v0x2583e40_0 .alias "i1", 0 0, v0x2585620_0;
431
+ v0x2583ec0_0 .alias "o", 0 0, v0x2585160_0;
432
+ S_0x2581fd0 .scope module, "fa3" "fulladd" 4 20, 4 2, S_0x2581ee0;
433
+ .timescale 0 0;
434
+ v0x2583480_0 .net "a", 0 0, L_0x2590de0; 1 drivers
435
+ v0x2583500_0 .net "b", 0 0, L_0x2590e80; 1 drivers
436
+ v0x2583580_0 .net "c", 0 0, L_0x2590fb0; 1 drivers
437
+ v0x2583600_0 .alias "cout", 0 0, v0x25891f0_0;
438
+ v0x2583680_0 .net "s", 0 0, L_0x2590630; 1 drivers
439
+ v0x2583730_0 .net "t0", 0 0, L_0x258ffc0; 1 drivers
440
+ v0x2583840_0 .net "t1", 0 0, L_0x25907f0; 1 drivers
441
+ v0x2583910_0 .net "t2", 0 0, L_0x2590890; 1 drivers
442
+ v0x2583a30_0 .net "t3", 0 0, L_0x2590930; 1 drivers
443
+ v0x2583b00_0 .net "t4", 0 0, L_0x25909d0; 1 drivers
444
+ S_0x2583170 .scope module, "x0" "xor2" 4 4, 2 13, S_0x2581fd0;
445
+ .timescale 0 0;
446
+ L_0x258ffc0 .functor XOR 1, L_0x2590de0, L_0x2590e80, C4<0>, C4<0>;
447
+ v0x2583260_0 .alias "i0", 0 0, v0x2583480_0;
448
+ v0x2583330_0 .alias "i1", 0 0, v0x2583500_0;
449
+ v0x2583400_0 .alias "o", 0 0, v0x2583730_0;
450
+ S_0x2582eb0 .scope module, "x1" "xor2" 4 5, 2 13, S_0x2581fd0;
451
+ .timescale 0 0;
452
+ L_0x2590630 .functor XOR 1, L_0x258ffc0, L_0x2590fb0, C4<0>, C4<0>;
453
+ v0x2582fa0_0 .alias "i0", 0 0, v0x2583730_0;
454
+ v0x2583020_0 .alias "i1", 0 0, v0x2583580_0;
455
+ v0x25830f0_0 .alias "o", 0 0, v0x2583680_0;
456
+ S_0x2582bb0 .scope module, "a0" "and2" 4 6, 2 5, S_0x2581fd0;
457
+ .timescale 0 0;
458
+ L_0x25907f0 .functor AND 1, L_0x2590de0, L_0x2590e80, C4<1>, C4<1>;
459
+ v0x2582ca0_0 .alias "i0", 0 0, v0x2583480_0;
460
+ v0x2582d50_0 .alias "i1", 0 0, v0x2583500_0;
461
+ v0x2582e00_0 .alias "o", 0 0, v0x2583840_0;
462
+ S_0x25828c0 .scope module, "a1" "and2" 4 7, 2 5, S_0x2581fd0;
463
+ .timescale 0 0;
464
+ L_0x2590890 .functor AND 1, L_0x2590de0, L_0x2590fb0, C4<1>, C4<1>;
465
+ v0x25829b0_0 .alias "i0", 0 0, v0x2583480_0;
466
+ v0x2582a50_0 .alias "i1", 0 0, v0x2583580_0;
467
+ v0x2582b00_0 .alias "o", 0 0, v0x2583910_0;
468
+ S_0x25825e0 .scope module, "a2" "and2" 4 8, 2 5, S_0x2581fd0;
469
+ .timescale 0 0;
470
+ L_0x2590930 .functor AND 1, L_0x2590e80, L_0x2590fb0, C4<1>, C4<1>;
471
+ v0x25826d0_0 .alias "i0", 0 0, v0x2583500_0;
472
+ v0x2582770_0 .alias "i1", 0 0, v0x2583580_0;
473
+ v0x2582810_0 .alias "o", 0 0, v0x2583a30_0;
474
+ S_0x2582330 .scope module, "o1" "or2" 4 9, 2 9, S_0x2581fd0;
475
+ .timescale 0 0;
476
+ L_0x25909d0 .functor OR 1, L_0x25907f0, L_0x2590890, C4<0>, C4<0>;
477
+ v0x2582420_0 .alias "i0", 0 0, v0x2583840_0;
478
+ v0x25824c0_0 .alias "i1", 0 0, v0x2583910_0;
479
+ v0x2582560_0 .alias "o", 0 0, v0x2583b00_0;
480
+ S_0x25820c0 .scope module, "o2" "or2" 4 10, 2 9, S_0x2581fd0;
481
+ .timescale 0 0;
482
+ L_0x2590b90 .functor OR 1, L_0x2590930, L_0x25909d0, C4<0>, C4<0>;
483
+ v0x25821b0_0 .alias "i0", 0 0, v0x2583a30_0;
484
+ v0x2582230_0 .alias "i1", 0 0, v0x2583b00_0;
485
+ v0x25822b0_0 .alias "o", 0 0, v0x25891f0_0;
486
+ S_0x2564d30 .scope module, "xnor3" "xnor3" 2 65;
487
+ .timescale 0 0;
488
+ v0x258a140_0 .net "i0", 0 0, C4<z>; 0 drivers
489
+ v0x258a1c0_0 .net "i1", 0 0, C4<z>; 0 drivers
490
+ v0x258a240_0 .net "i2", 0 0, C4<z>; 0 drivers
491
+ v0x258a310_0 .net "o", 0 0, L_0x25912e0; 1 drivers
492
+ v0x258a3e0_0 .net "t", 0 0, L_0x2590f20; 1 drivers
493
+ S_0x2589e80 .scope module, "xor2_0" "xor2" 2 67, 2 13, S_0x2564d30;
494
+ .timescale 0 0;
495
+ L_0x2590f20 .functor XOR 1, C4<z>, C4<z>, C4<0>, C4<0>;
496
+ v0x2589f70_0 .alias "i0", 0 0, v0x258a140_0;
497
+ v0x2589ff0_0 .alias "i1", 0 0, v0x258a1c0_0;
498
+ v0x258a070_0 .alias "o", 0 0, v0x258a3e0_0;
499
+ S_0x2589600 .scope module, "xnor2_0" "xnor2" 2 68, 2 29, S_0x2564d30;
500
+ .timescale 0 0;
501
+ v0x2589bd0_0 .alias "i0", 0 0, v0x258a240_0;
502
+ v0x2589c50_0 .alias "i1", 0 0, v0x258a3e0_0;
503
+ v0x2589cd0_0 .alias "o", 0 0, v0x258a310_0;
504
+ v0x2589d80_0 .net "t", 0 0, L_0x2591240; 1 drivers
505
+ S_0x2589900 .scope module, "xor2_0" "xor2" 2 31, 2 13, S_0x2589600;
506
+ .timescale 0 0;
507
+ L_0x2591240 .functor XOR 1, C4<z>, L_0x2590f20, C4<0>, C4<0>;
508
+ v0x25899f0_0 .alias "i0", 0 0, v0x258a240_0;
509
+ v0x2589ab0_0 .alias "i1", 0 0, v0x258a3e0_0;
510
+ v0x2589b50_0 .alias "o", 0 0, v0x2589d80_0;
511
+ S_0x25896f0 .scope module, "invert_0" "invert" 2 32, 2 1, S_0x2589600;
512
+ .timescale 0 0;
513
+ v0x25897e0_0 .alias "i", 0 0, v0x2589d80_0;
514
+ v0x2589860_0 .alias "o", 0 0, v0x258a310_0;
515
+ L_0x25912e0 .reduce/nor L_0x2591240;
516
+ S_0x25650b0 .scope module, "xor3" "xor3" 2 59;
517
+ .timescale 0 0;
518
+ v0x258a9c0_0 .net "i0", 0 0, C4<z>; 0 drivers
519
+ v0x258aa70_0 .net "i1", 0 0, C4<z>; 0 drivers
520
+ v0x258ab20_0 .net "i2", 0 0, C4<z>; 0 drivers
521
+ v0x258abd0_0 .net "o", 0 0, L_0x25914d0; 1 drivers
522
+ v0x258acb0_0 .net "t", 0 0, L_0x2591430; 1 drivers
523
+ S_0x258a6f0 .scope module, "xor2_0" "xor2" 2 61, 2 13, S_0x25650b0;
524
+ .timescale 0 0;
525
+ L_0x2591430 .functor XOR 1, C4<z>, C4<z>, C4<0>, C4<0>;
526
+ v0x258a7e0_0 .alias "i0", 0 0, v0x258a9c0_0;
527
+ v0x258a8a0_0 .alias "i1", 0 0, v0x258aa70_0;
528
+ v0x258a940_0 .alias "o", 0 0, v0x258acb0_0;
529
+ S_0x258a460 .scope module, "xor2_1" "xor2" 2 62, 2 13, S_0x25650b0;
530
+ .timescale 0 0;
531
+ L_0x25914d0 .functor XOR 1, C4<z>, L_0x2591430, C4<0>, C4<0>;
532
+ v0x258a550_0 .alias "i0", 0 0, v0x258ab20_0;
533
+ v0x258a5d0_0 .alias "i1", 0 0, v0x258acb0_0;
534
+ v0x258a650_0 .alias "o", 0 0, v0x258abd0_0;
535
+ .scope S_0x2565ac0;
536
+ T_0 ;
537
+ %vpi_call 3 10 "$dumpfile", "tb_add.vcd";
538
+ %vpi_call 3 10 "$dumpvars", 1'sb0, S_0x2565ac0;
539
+ %end;
540
+ .thread T_0;
541
+ .scope S_0x2565ac0;
542
+ T_1 ;
543
+ %set/v v0x25894b0_0, 1, 1;
544
+ %delay 125, 0;
545
+ %set/v v0x25894b0_0, 0, 1;
546
+ %end;
547
+ .thread T_1;
548
+ .scope S_0x2565ac0;
549
+ T_2 ;
550
+ %set/v v0x2589170_0, 0, 1;
551
+ %end;
552
+ .thread T_2;
553
+ .scope S_0x2565ac0;
554
+ T_3 ;
555
+ %delay 50, 0;
556
+ %load/v 8, v0x2589170_0, 1;
557
+ %inv 8, 1;
558
+ %set/v v0x2589170_0, 8, 1;
559
+ %jmp T_3;
560
+ .thread T_3;
561
+ .scope S_0x2565ac0;
562
+ T_4 ;
563
+ %movi 8, 2, 9;
564
+ %ix/load 1, 0, 0;
565
+ %ix/load 3, 0, 0;
566
+ %set/av v0x2589580, 8, 9;
567
+ %movi 8, 34, 9;
568
+ %ix/load 1, 0, 0;
569
+ %ix/load 3, 1, 0;
570
+ %set/av v0x2589580, 8, 9;
571
+ %movi 8, 226, 9;
572
+ %ix/load 1, 0, 0;
573
+ %ix/load 3, 2, 0;
574
+ %set/av v0x2589580, 8, 9;
575
+ %movi 8, 14, 9;
576
+ %ix/load 1, 0, 0;
577
+ %ix/load 3, 3, 0;
578
+ %set/av v0x2589580, 8, 9;
579
+ %movi 8, 207, 9;
580
+ %ix/load 1, 0, 0;
581
+ %ix/load 3, 4, 0;
582
+ %set/av v0x2589580, 8, 9;
583
+ %movi 8, 115, 9;
584
+ %ix/load 1, 0, 0;
585
+ %ix/load 3, 5, 0;
586
+ %set/av v0x2589580, 8, 9;
587
+ %movi 8, 483, 9;
588
+ %ix/load 1, 0, 0;
589
+ %ix/load 3, 6, 0;
590
+ %set/av v0x2589580, 8, 9;
591
+ %movi 8, 238, 9;
592
+ %ix/load 1, 0, 0;
593
+ %ix/load 3, 7, 0;
594
+ %set/av v0x2589580, 8, 9;
595
+ %end;
596
+ .thread T_4;
597
+ .scope S_0x2565ac0;
598
+ T_5 ;
599
+ %set/v v0x25890d0_0, 0, 1;
600
+ %set/v v0x2589370_0, 0, 4;
601
+ %set/v v0x25892f0_0, 0, 4;
602
+ %end;
603
+ .thread T_5;
604
+ .scope S_0x2565ac0;
605
+ T_6 ;
606
+ %delay 60, 0;
607
+ %set/v v0x2589270_0, 0, 32;
608
+ T_6.0 ;
609
+ %load/v 8, v0x2589270_0, 32;
610
+ %cmpi/s 8, 8, 32;
611
+ %jmp/0xz T_6.1, 5;
612
+ %delay 100, 0;
613
+ %ix/getv/s 3, v0x2589270_0;
614
+ %load/av 8, v0x2589580, 9;
615
+ %set/v v0x25890d0_0, 8, 1;
616
+ %set/v v0x2589370_0, 9, 4;
617
+ %set/v v0x25892f0_0, 13, 4;
618
+ %ix/load 0, 1, 0;
619
+ %load/vp0/s 8, v0x2589270_0, 32;
620
+ %set/v v0x2589270_0, 8, 32;
621
+ %jmp T_6.0;
622
+ T_6.1 ;
623
+ %delay 1000, 0;
624
+ %vpi_call 3 28 "$finish";
625
+ %end;
626
+ .thread T_6;
627
+ # The file index is used to find the file name in the following table.
628
+ :file_names 5;
629
+ "N/A";
630
+ "<interactive>";
631
+ "lib.v";
632
+ "tb_add.v";
633
+ "add.v";
aditeyabaral_DDCO-Lab-UE18CS207/source/Week 2/add.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdd94ab6094ab29f791803f819a81007ede88392afeb2731fb9cbfa42b88dcb6
3
+ size 122222