STAR-future commited on
Commit
fedab69
·
verified ·
1 Parent(s): 34292e0

add chips/openroad_flow_scripts (part 8)

Browse files
chips/openroad_flow_scripts/tools/codespace/scripts/patch-novnc-ui.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright (c) 2024 Antmicro <www.antmicro.com>
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ # Change remote scaling
6
+ sed -i 's/UI.initSetting('\''resize'\''\, '\''off'\'')/UI.initSetting('\''resize'\''\, '\''remote'\'')/' /usr/local/novnc/noVNC*/app/ui.js
7
+
8
+ # Change autoconnect to skip login panel
9
+ sed -i 's/WebUtil.getConfigVar('\''autoconnect'\'', false)/WebUtil\.getConfigVar('\''autoconnect'\'', true)/' /usr/local/novnc/noVNC*/app/ui.js
chips/openroad_flow_scripts/tools/yosys_util/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM openroad/yosys-dev AS builder
2
+ COPY . /yosys
3
+ WORKDIR /yosys
4
+ RUN make PREFIX=/install CONFIG=gcc ABCREV=bafd2a7 ABCURL=https://github.com/berkeley-abc/abc install -j$(nproc)
chips/openroad_flow_scripts/tools/yosys_util/Dockerfile.dev ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM centos:centos7
2
+
3
+ # install gcc 7
4
+ RUN yum -y install centos-release-scl && \
5
+ yum -y install devtoolset-7 devtoolset-7-libatomic-devel
6
+ ENV CC=/opt/rh/devtoolset-7/root/usr/bin/gcc \
7
+ CPP=/opt/rh/devtoolset-7/root/usr/bin/cpp \
8
+ CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ \
9
+ PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH \
10
+ LD_LIBRARY_PATH=/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib:/opt/rh/devtoolset-7/root/usr/lib64/dyninst:/opt/rh/devtoolset-7/root/usr/lib/dyninst:/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib:$LD_LIBRARY_PATH
11
+
12
+ # python 3.6
13
+ RUN yum -y install rh-python36
14
+ ENV PATH=/opt/rh/rh-python36/root/usr/bin:$PATH
15
+
16
+ # install other yosys dependencies
17
+ RUN yum install -y flex tcl tcl-devel libffi-devel git graphviz readline-devel glibc-static wget autoconf zlib-devel && \
18
+ wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz && \
19
+ tar -xvzf bison-3.0.1.tar.gz && \
20
+ cd bison-3.0.1 && \
21
+ ./configure && \
22
+ make install -j$(nproc)
chips/openroad_flow_scripts/yamlfix.toml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ explicit_start = true
2
+ line_length = 80
3
+ preserve_quotes = true
4
+ quote_representation = "'"
5
+ section_whitelines = 0
6
+ sequence_style = "block_style"
7
+ comments_min_spaces_from_content = 2
8
+ allow_duplicate_keys = false
9
+ indent_mapping = 2
10
+ indent_offset = 2
11
+ indent_sequence = 4