try symlink to mk fragments
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 19 Feb 2020 20:51:40 +0000 (20:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 19 Feb 2020 20:51:40 +0000 (20:51 +0000)
Makefile [changed mode: 0644->0755]
mksym.sh [new file with mode: 0755]
nets.txt [new file with mode: 0644]

old mode 100644 (file)
new mode 100755 (executable)
index ddce7be..53ee710
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,25 @@
-YOSYS_TOP=/tmp/yosys_top
-LIBERTY_FILE=/path/to/alliance-check-toolkit/cells/nsxlib/nsxlib.lib
+# -*- explicit-buffer-name: "Makefile<6502/cmos45>" -*-
 
-include mk/synthesis-yosys.mk
+        LOGICAL_SYNTHESIS = Yosys
+       PHYSICAL_SYNTHESIS = Coriolis
+               DESIGN_KIT = sxlib
 
-top.blif: top.il
+#           YOSYS_FLATTEN = Yes
+            USE_CLOCKTREE = Yes
+                USE_DEBUG = No
+                 USE_KITE = No
 
-clean:
-       rm *.blif
-       rm *.tcl
+                 NETLISTS = $(shell cat nets.txt)
+
+
+ include ./mk/design-flow.mk
+
+
+blif:      part_sig_add.blif
+vst:       part_sig_add.vst
+layout:    part_sig_add_cts_r.ap
+gds:       part_sig_add_cts_r.gds
+
+lvx:       lvx-part_sig_add_cts_r
+druc:      druc-part_sig_add_cts_r
+view:      cgt-part_sig_add_cts_r
diff --git a/mksym.sh b/mksym.sh
new file mode 100755 (executable)
index 0000000..47de995
--- /dev/null
+++ b/mksym.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+echo "creating symlinks"
+
+mkdir -p mk/dks.d
+
+declare -a ScriptsArray=("os" "users" "binaries" "alliance"
+        "design-flow" "pr-coriolis" "pr-alliance" "pr-hibikino"
+)
+
+for script in "${ScriptsArray[@]}"; do
+    if [ ! -L "mk/$script.mk" ]; then
+        echo "link" mk/$script.mk
+        ln -s mk/$ALLIANCE_TOP/$script.mk mk/$script.mk
+    fi
+done
+
+declare -a LibsArray=("sxlib" "nsxlib" "nxslib45"
+)
+
+for script in "${LibsArray[@]}"; do
+    if [ ! -L "mk/dks.d/$script.mk" ]; then
+        echo "link" mk/dks.d/$script.mk
+        ln -s mk/$ALLIANCE_TOP/$script.mk mk/dks.d/$script.mk
+    fi
+done
+
diff --git a/nets.txt b/nets.txt
new file mode 100644 (file)
index 0000000..20708ea
--- /dev/null
+++ b/nets.txt
@@ -0,0 +1,45 @@
+mux0
+mux1
+mux2
+gtc
+reorder
+gt1
+mux0$2
+mux1$3
+mux2$4
+gtc$1
+reorder$5
+eq1
+mux0$7
+mux1$8
+mux2$9
+gtc$6
+reorder$10
+ge1
+mux0$12
+mux1$13
+mux2$14
+gtc$11
+reorder$15
+gt2
+mux0$17
+mux1$18
+mux2$19
+gtc$16
+reorder$20
+eq2
+mux0$22
+mux1$23
+mux2$24
+gtc$21
+reorder$25
+ge2
+ripple
+add1
+ripple$26
+add2
+ripple$27
+add3
+ls1
+pmux1
+part_sig_add