-
Notifications
You must be signed in to change notification settings - Fork 5
/
install_blinky.sh
executable file
·62 lines (50 loc) · 2.86 KB
/
install_blinky.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#"***************************************************************************************************"
# common initialization
#"***************************************************************************************************"
# select master or some GitHub hash version, and whether or not to force a clean
THIS_CHECKOUT=master
THIS_CLEAN=true
# perform some version control checks on this file
./gitcheck.sh $0
# initialize some environment variables and perform some sanity checks
. ./init.sh
# we don't want tee to capture exit codes
set -o pipefail
#"***************************************************************************************************"
# fetch @DoctorWkt FPGA ULX3S-Blinky into workspace
#"***************************************************************************************************"
echo "***************************************************************************************************"
echo "@DoctorWkt ULX3S-Blinky. Saving log to $THIS_LOG"
echo "***************************************************************************************************"
# Call the common github checkout:
pushd .
cd "$WORKSPACE"
$SAVED_CURRENT_PATH/fetch_github.sh https://github.com/DoctorWkt/ULX3S-Blinky ULX3S-Blinky $THIS_CHECKOUT 2>&1 | tee -a "$THIS_LOG"
$SAVED_CURRENT_PATH/check_for_error.sh $? "$THIS_LOG"
cd "$WORKSPACE"/ULX3S-Blinky
# make # --> will produce errors
# verilator -O3 -MMD --trace -Wall -cc blinky.v
# %Error: blinky.v:5:10: Duplicate declaration of signal: 'i_clk'
# : ... note: ANSI ports must have type declared with the I/O (IEEE 1800-2017 23.2.2.2)
# 5 | wire i_clk;
# | ^~~~~
# blinky.v:3:21: ... Location of original declaration
# 3 | module blinky(input i_clk, input [6:0] btn, output [7:0] o_led);
# | ^~~~~
# %Error: blinky.v:6:16: Duplicate declaration of signal: 'btn'
# 6 | wire [6:0] btn;
# | ^~~
# blinky.v:3:40: ... Location of original declaration
# 3 | module blinky(input i_clk, input [6:0] btn, output [7:0] o_led);
# | ^~~
# %Error: blinky.v:7:16: Duplicate declaration of signal: 'o_led'
# 7 | wire [7:0] o_led;
# | ^~~~~
# blinky.v:3:58: ... Location of original declaration
# 3 | module blinky(input i_clk, input [6:0] btn, output [7:0] o_led);
# | ^~~~~
# %Error: Exiting due to 3 error(s)
popd
echo "Completed $0 " | tee -a "$THIS_LOG"
echo "----------------------------------"