From 4a03fa2308d69bba5a791bccd07f30901f97001a Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Sat, 21 Dec 2024 00:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AB=E4=BD=8D=E5=85=A8?= =?UTF-8?q?=E5=8A=A0=E5=99=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/full_adder.json | 649 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 649 insertions(+) create mode 100644 public/full_adder.json diff --git a/public/full_adder.json b/public/full_adder.json new file mode 100644 index 0000000..abc1f4a --- /dev/null +++ b/public/full_adder.json @@ -0,0 +1,649 @@ +{ + "creator": "Yosys 0.48+5 (git sha1 7a362f1f7, clang++ 18.1.2-wasi-sdk -Oz)", + "modules": { + "counter": { + "attributes": { + "cells_not_processed": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:1.1-21.10" + }, + "parameter_default_values": { + "START_VALUE": "00001111", + "STEP": "1" + }, + "ports": { + "clock": { + "direction": "input", + "bits": [ 2 ] + }, + "rstn": { + "direction": "input", + "bits": [ 3 ] + }, + "count": { + "direction": "output", + "bits": [ 4, 5, 6, 7, 8, 9, 10, 11 ] + } + }, + "cells": { + "$auto$alumacc.cc:485:replace_alu$17": { + "hide_name": 1, + "type": "$alu", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000001000", + "Y_WIDTH": "00000000000000000000000000001000" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:17.22-17.34" + }, + "port_directions": { + "A": "input", + "B": "input", + "BI": "input", + "CI": "input", + "CO": "output", + "X": "output", + "Y": "output" + }, + "connections": { + "A": [ "1" ], + "B": [ 4, 5, 6, 7, 8, 9, 10, 11 ], + "BI": [ "0" ], + "CI": [ "0" ], + "CO": [ 12, 13, 14, 15, 16, 17, 18, 19 ], + "X": [ 20, 21, 22, 23, 24, 25, 26, 27 ], + "Y": [ 28, 29, 30, 31, 32, 33, 34, 35 ] + } + }, + "$procdff$15": { + "hide_name": 1, + "type": "$adff", + "parameters": { + "ARST_POLARITY": "00000000000000000000000000000000", + "ARST_VALUE": "00001111", + "CLK_POLARITY": "1", + "WIDTH": "00000000000000000000000000001000" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:12.5-19.8" + }, + "port_directions": { + "ARST": "input", + "CLK": "input", + "D": "input", + "Q": "output" + }, + "connections": { + "ARST": [ 3 ], + "CLK": [ 2 ], + "D": [ 28, 29, 30, 31, 32, 33, 34, 35 ], + "Q": [ 4, 5, 6, 7, 8, 9, 10, 11 ] + } + } + }, + "netnames": { + "$0\\count[7:0]": { + "hide_name": 1, + "bits": [ 28, 29, 30, 31, 32, 33, 34, 35 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:12.5-19.8" + } + }, + "$auto$alumacc.cc:501:replace_alu$18": { + "hide_name": 1, + "bits": [ 20, 21, 22, 23, 24, 25, 26, 27 ], + "attributes": { + "unused_bits": "0 1 2 3 4 5 6 7" + } + }, + "$auto$alumacc.cc:502:replace_alu$19": { + "hide_name": 1, + "bits": [ 12, 13, 14, 15, 16, 17, 18, 19 ], + "attributes": { + "unused_bits": "0 1 2 3 4 5 6 7" + } + }, + "clock": { + "hide_name": 0, + "bits": [ 2 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:5.29-5.34" + } + }, + "count": { + "hide_name": 0, + "bits": [ 4, 5, 6, 7, 8, 9, 10, 11 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:7.29-7.34" + } + }, + "rstn": { + "hide_name": 0, + "bits": [ 3 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:6.29-6.33" + } + } + } + }, + "full_adder": { + "attributes": { + "dynports": "00000000000000000000000000000001", + "cells_not_processed": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:4.1-31.10" + }, + "parameter_default_values": { + "WIDTH": "00000000000000000000000000001000" + }, + "ports": { + "A": { + "direction": "input", + "bits": [ 2, 3, 4, 5, 6, 7, 8, 9 ] + }, + "B": { + "direction": "input", + "bits": [ 10, 11, 12, 13, 14, 15, 16, 17 ] + }, + "Cin": { + "direction": "input", + "bits": [ 18 ] + }, + "Sum": { + "direction": "output", + "bits": [ 19, 20, 21, 22, 23, 24, 25, 26 ] + }, + "Cout": { + "direction": "output", + "bits": [ 27 ] + } + }, + "cells": { + "U[0].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 2 ], + "B": [ 10 ], + "Cin": [ 18 ], + "Cout": [ 28 ], + "Sum": [ 19 ] + } + }, + "U[1].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 3 ], + "B": [ 11 ], + "Cin": [ 28 ], + "Cout": [ 29 ], + "Sum": [ 20 ] + } + }, + "U[2].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 4 ], + "B": [ 12 ], + "Cin": [ 29 ], + "Cout": [ 30 ], + "Sum": [ 21 ] + } + }, + "U[3].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 5 ], + "B": [ 13 ], + "Cin": [ 30 ], + "Cout": [ 31 ], + "Sum": [ 22 ] + } + }, + "U[4].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 6 ], + "B": [ 14 ], + "Cin": [ 31 ], + "Cout": [ 32 ], + "Sum": [ 23 ] + } + }, + "U[5].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 7 ], + "B": [ 15 ], + "Cin": [ 32 ], + "Cout": [ 33 ], + "Sum": [ 24 ] + } + }, + "U[6].FA": { + "hide_name": 0, + "type": "full_adder_1bit", + "parameters": { + }, + "attributes": { + "module_not_derived": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:20.25-27.10" + }, + "port_directions": { + "A": "input", + "B": "input", + "Cin": "input", + "Cout": "output", + "Sum": "output" + }, + "connections": { + "A": [ 8 ], + "B": [ 16 ], + "Cin": [ 33 ], + "Cout": [ 34 ], + "Sum": [ 25 ] + } + } + }, + "netnames": { + "A": { + "hide_name": 0, + "bits": [ 2, 3, 4, 5, 6, 7, 8, 9 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:7.28-7.29" + } + }, + "B": { + "hide_name": 0, + "bits": [ 10, 11, 12, 13, 14, 15, 16, 17 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:8.28-8.29" + } + }, + "Ca": { + "hide_name": 0, + "bits": [ 18, 28, 29, 30, 31, 32, 33, 34 ], + "attributes": { + "unused_bits": "7" + } + }, + "Cin": { + "hide_name": 0, + "bits": [ 18 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:9.16-9.19" + } + }, + "Cout": { + "hide_name": 0, + "bits": [ 27 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:11.16-11.20" + } + }, + "Sum": { + "hide_name": 0, + "bits": [ 19, 20, 21, 22, 23, 24, 25, 26 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/head.v:10.28-10.31" + } + } + } + }, + "full_adder_1bit": { + "attributes": { + "cells_not_processed": "00000000000000000000000000000001", + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:24.1-37.10" + }, + "ports": { + "A": { + "direction": "input", + "bits": [ 2 ] + }, + "B": { + "direction": "input", + "bits": [ 3 ] + }, + "Cin": { + "direction": "input", + "bits": [ 4 ] + }, + "Sum": { + "direction": "output", + "bits": [ 5 ] + }, + "Cout": { + "direction": "output", + "bits": [ 6 ] + } + }, + "cells": { + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$6": { + "hide_name": 1, + "type": "$and", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.20-35.25" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 2 ], + "B": [ 3 ], + "Y": [ 7 ] + } + }, + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$7": { + "hide_name": 1, + "type": "$and", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.30-35.37" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 3 ], + "B": [ 4 ], + "Y": [ 8 ] + } + }, + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$9": { + "hide_name": 1, + "type": "$and", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.42-35.49" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 2 ], + "B": [ 4 ], + "Y": [ 9 ] + } + }, + "$or$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$10": { + "hide_name": 1, + "type": "$or", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.19-35.50" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 10 ], + "B": [ 9 ], + "Y": [ 6 ] + } + }, + "$or$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$8": { + "hide_name": 1, + "type": "$or", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.19-35.38" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 7 ], + "B": [ 8 ], + "Y": [ 10 ] + } + }, + "$xor$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32$4": { + "hide_name": 1, + "type": "$xor", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32.18-32.23" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 2 ], + "B": [ 3 ], + "Y": [ 11 ] + } + }, + "$xor$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32$5": { + "hide_name": 1, + "type": "$xor", + "parameters": { + "A_SIGNED": "00000000000000000000000000000000", + "A_WIDTH": "00000000000000000000000000000001", + "B_SIGNED": "00000000000000000000000000000000", + "B_WIDTH": "00000000000000000000000000000001", + "Y_WIDTH": "00000000000000000000000000000001" + }, + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32.18-32.29" + }, + "port_directions": { + "A": "input", + "B": "input", + "Y": "output" + }, + "connections": { + "A": [ 11 ], + "B": [ 4 ], + "Y": [ 5 ] + } + } + }, + "netnames": { + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$6_Y": { + "hide_name": 1, + "bits": [ 7 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.20-35.25" + } + }, + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$7_Y": { + "hide_name": 1, + "bits": [ 8 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.30-35.37" + } + }, + "$and$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$9_Y": { + "hide_name": 1, + "bits": [ 9 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.42-35.49" + } + }, + "$or$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35$8_Y": { + "hide_name": 1, + "bits": [ 10 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:35.19-35.38" + } + }, + "$xor$/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32$4_Y": { + "hide_name": 1, + "bits": [ 11 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:32.18-32.23" + } + }, + "A": { + "hide_name": 0, + "bits": [ 2 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:25.15-25.16" + } + }, + "B": { + "hide_name": 0, + "bits": [ 3 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:26.15-26.16" + } + }, + "Cin": { + "hide_name": 0, + "bits": [ 4 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:27.15-27.18" + } + }, + "Cout": { + "hide_name": 0, + "bits": [ 6 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:29.16-29.20" + } + }, + "Sum": { + "hide_name": 0, + "bits": [ 5 ], + "attributes": { + "src": "/home/dide/project/Digital-Test/DIDEtemp/user/src/language/vlog/dependence/utils/utils.v:28.16-28.19" + } + } + } + } + } + } + \ No newline at end of file