From: yu.dongliang <18588496441@163.com>
Date: Thu, 3 Apr 2025 17:59:44 +0000 (+0800)
Subject: delete *.cpk & *.c for simple NAND, NOR, NOT gate
X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=87dc661b31d6fe475e8fc9e92abe4f9c9768310a;p=ses.git

delete *.cpk & *.c for simple NAND, NOR, NOT gate
---

diff --git a/cpk/nand.cpk b/cpk/nand.cpk
deleted file mode 100644
index cd0bf01..0000000
Binary files a/cpk/nand.cpk and /dev/null differ
diff --git a/cpk/nor.c b/cpk/nor.c
deleted file mode 100644
index 88eb3a1..0000000
--- a/cpk/nor.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include<stdio.h>
-#include<stdlib.h>
-#include<string.h>
-#include"ses_core.h"
-
-int main(int argc, char* argv[])
-{
-	ScfEcomponent* B;
-
-	ScfEcomponent* R0;
-	ScfEcomponent* T0;
-	ScfEcomponent* T1;
-
-	ScfEfunction*  f;
-
-	f = scf_efunction__alloc("nor.cpk");
-
-	EDA_INST_ADD_COMPONENT(f, R0, SCF_EDA_Resistor);
-	EDA_INST_ADD_COMPONENT(f, T0, SCF_EDA_NPN);
-	EDA_INST_ADD_COMPONENT(f, T1, SCF_EDA_NPN);
-
-	EDA_PIN_ADD_PIN(R0, 0,             T0, SCF_EDA_NPN_C);
-	EDA_PIN_ADD_PIN(R0, 0,             T1, SCF_EDA_NPN_C);
-	EDA_PIN_ADD_PIN(T0, SCF_EDA_NPN_E, T1, SCF_EDA_NPN_E);
-
-	R0->pins[1]->flags             = SCF_EDA_PIN_POS;
-	T0->pins[SCF_EDA_NPN_E]->flags = SCF_EDA_PIN_NEG;
-
-	T0->pins[SCF_EDA_NPN_B]->flags = SCF_EDA_PIN_IN | SCF_EDA_PIN_IN0;
-	T1->pins[SCF_EDA_NPN_B]->flags = SCF_EDA_PIN_IN;
-	R0->pins[0]->flags             = SCF_EDA_PIN_OUT;
-
-	R0->pins[1]->ic_lid             = SCF_EDA_NOR_POS;
-	T0->pins[SCF_EDA_NPN_E]->ic_lid = SCF_EDA_NOR_NEG;
-
-	T0->pins[SCF_EDA_NPN_B]->ic_lid = SCF_EDA_NOR_IN0;
-	T1->pins[SCF_EDA_NPN_B]->ic_lid = SCF_EDA_NOR_IN1;
-	R0->pins[0]->ic_lid             = SCF_EDA_NOR_OUT;
-
-	int ret = scf_pins_same_line(f);
-	if (ret < 0)
-		return ret;
-
-	long     len = 0;
-	uint8_t* buf = NULL;
-
-	ScfEfunction_pack(f, &buf, &len);
-	ScfEfunction_free(f);
-	f = NULL;
-
-	FILE* fp = fopen("./nor.cpk", "wb");
-	if (!fp)
-		return -EINVAL;
-
-	fwrite(buf, len, 1, fp);
-	fclose(fp);
-	return 0;
-}
diff --git a/cpk/nor.cpk b/cpk/nor.cpk
deleted file mode 100644
index b62b0f2..0000000
Binary files a/cpk/nor.cpk and /dev/null differ
diff --git a/cpk/not.c b/cpk/not.c
deleted file mode 100644
index 22fd5c6..0000000
--- a/cpk/not.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include<stdio.h>
-#include<stdlib.h>
-#include<string.h>
-#include"ses_core.h"
-
-int main(int argc, char* argv[])
-{
-	ScfEcomponent* B;
-
-	ScfEcomponent* R0;
-	ScfEcomponent* T0;
-
-	ScfEfunction*  f;
-
-	f = scf_efunction__alloc("not.cpk");
-
-	EDA_INST_ADD_COMPONENT(f, R0, SCF_EDA_Resistor);
-	EDA_INST_ADD_COMPONENT(f, T0, SCF_EDA_NPN);
-
-	EDA_PIN_ADD_PIN(R0, 0, T0, SCF_EDA_NPN_C);
-
-	R0->pins[1]->flags             = SCF_EDA_PIN_POS;
-	T0->pins[SCF_EDA_NPN_E]->flags = SCF_EDA_PIN_NEG;
-
-	T0->pins[SCF_EDA_NPN_B]->flags = SCF_EDA_PIN_IN | SCF_EDA_PIN_IN0;
-	R0->pins[0]->flags             = SCF_EDA_PIN_OUT;
-
-	R0->pins[1]->ic_lid             = SCF_EDA_NOT_POS;
-	T0->pins[SCF_EDA_NPN_E]->ic_lid = SCF_EDA_NOT_NEG;
-
-	T0->pins[SCF_EDA_NPN_B]->ic_lid = SCF_EDA_NOT_IN;
-	R0->pins[0]->ic_lid             = SCF_EDA_NOT_OUT;
-
-	int ret = scf_pins_same_line(f);
-	if (ret < 0)
-		return ret;
-
-	long     len = 0;
-	uint8_t* buf = NULL;
-
-	ScfEfunction_pack(f, &buf, &len);
-	ScfEfunction_free(f);
-	f = NULL;
-
-	FILE* fp = fopen("./not.cpk", "wb");
-	if (!fp)
-		return -EINVAL;
-
-	fwrite(buf, len, 1, fp);
-	fclose(fp);
-	return 0;
-}
diff --git a/cpk/not.cpk b/cpk/not.cpk
deleted file mode 100644
index 8b934a5..0000000
Binary files a/cpk/not.cpk and /dev/null differ