add wget of libresoc gds logo
[soclayout.git] / experiments9 / tsmc_c018 / build_full_4ksram_recon.sh
1 #!/bin/sh
2
3 # full core build including QTY 4of 4k SRAMs: please remember to alter
4 # doDesign.py before running!
5 # change the settings to the larger chip/corona size
6 #
7 # also contains Staf's manually re-connected PLL edits to the verilog
8 # see commits 24cbbcc and 227a0f69
9 #
10 # Include tweaks dedicated to jpc's slightly different build environment.
11
12 echo "remember to check doDesign core size"
13 echo "also use yosys 049e3abf9"
14 if [ "${USER}" = "jpc" ]; then echo "Using \"jpc\" configuration."; fi
15
16 # fetch GDS-II files
17 echo "fetching GDS-II files"
18 wget http://ftp.libre-soc.org/C4MLogo.gds
19 wget http://ftp.libre-soc.org/lip6.gds
20 wget http://ftp.libre-soc.org/sorbonne_logo.gds
21 wget http://ftp.libre-soc.org/libresoc_logo.gds
22
23 # initialise/update the pinmux submodule
24 if [ "${USER}" = "jpc" ]; then
25 # Must be done in the root of the repository when cloning anew.
26 (cd ../..; git submodule update --init --remote)
27 else
28 git submodule update --init --remote
29 fi
30
31 # makes symlinks to alliance
32 if [ ! -e "./mk" ]; then
33 if [ "${USER}" = "jpc" ]; then
34 ln -s ../../../../alliance-check-toolkit/etc/mk .
35 else
36 ./mksyms.sh
37 fi
38 fi
39
40 # generates the io pads needed for ioring.py
41 make pinmux
42
43 # clear out
44 make clean
45 rm -f *.vst *.ap
46
47 # copies over a "full" core
48 #cp non_generated/full_core_4_4ksram_ls180.il ls180.il
49 cp non_generated/full_core_4_4ksram_ls180.v ls180.v
50 cp non_generated/full_core_4_4ksram_litex_ls180_recon.v litex_ls180.v
51 cp non_generated/full_core_4_4ksram_libresoc_recon.v libresoc.v
52 cp non_generated/spblock*.v .
53 cp non_generated/spblock*.vbe .
54 cp non_generated/pll.v .
55 touch mem.init
56 touch mem_1.init
57 touch mem_2.init
58 touch mem_3.init
59 touch mem_4.init
60 touch mem_5.init
61
62 if [ "${USER}" != "jpc" ]; then
63 # make the vst from verilog
64 make vst
65
66 # starts the build.
67 make layout
68 fi