Skip to content

Commit d985444

Browse files
Modify config clock frequency for 6S speed grade
Boards that implement the 6S speed grade device have a 200MHz config clock frequency, not 250Mhz like 4S and 5S speed grade devices. Some of the demos rely on the frequency of this clock to be defined accurately. This commit implements script changes that will edit the affected source files before they are used to create the system that rely on an accurate frequency. Signed-off-by: Rod Frazer <[email protected]>
1 parent 9e1d068 commit d985444

File tree

6 files changed

+63
-3
lines changed

6 files changed

+63
-3
lines changed

common_pd_subsystems/hw_i2c_bridge/build_hw.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ cd $(dirname ${0})
3232
exit 0
3333
}
3434

35+
# prep the source that requires config clock frequency
36+
cp ../../common_pd_subsystems/do_create_i2c_bridge.tcl do_create_i2c_bridge.tcl \
37+
|| { echo "ERROR" ; exit 1 ; }
38+
39+
[ "$(basename $(dirname $(pwd)))" == "brd_altera_a5e065_premium_es" ] && {
40+
sed \
41+
-e "s/250000000/200000000/" \
42+
../../common_pd_subsystems/do_create_i2c_bridge.tcl \
43+
> do_create_i2c_bridge.tcl \
44+
|| { echo "ERROR" ; exit 1 ; }
45+
}
46+
47+
[ "$(basename $(dirname $(pwd)))" == "brd_criticallink_mitysbc_es" ] && {
48+
sed \
49+
-e "s/250000000/200000000/" \
50+
../../common_pd_subsystems/do_create_i2c_bridge.tcl \
51+
> do_create_i2c_bridge.tcl \
52+
|| { echo "ERROR" ; exit 1 ; }
53+
}
54+
3555
# build the hardware
3656
(
3757
ln -s ../hw_base/custom_ip.ipx . && \

common_pd_subsystems/hw_i2c_bridge/create_pd_sys.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package require -exact qsys 23.4
88
source ./do_create_no_pins_pd_top.tcl
99

1010
# create the system "i2c_bridge"
11-
source ../../common_pd_subsystems/do_create_i2c_bridge.tcl
11+
source ./do_create_i2c_bridge.tcl
1212

1313
# create the system "no_periph"
1414
source ../../common_pd_subsystems/do_create_no_periph.tcl

common_pd_subsystems/hw_spi_bridge/build_hw.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ cd $(dirname ${0})
3232
exit 0
3333
}
3434

35+
# prep the source that requires config clock frequency
36+
cp ../../common_pd_subsystems/do_create_spi_bridge.tcl do_create_spi_bridge.tcl \
37+
|| { echo "ERROR" ; exit 1 ; }
38+
39+
[ "$(basename $(dirname $(pwd)))" == "brd_altera_a5e065_premium_es" ] && {
40+
sed \
41+
-e "s/250000000/200000000/" \
42+
../../common_pd_subsystems/do_create_spi_bridge.tcl \
43+
> do_create_spi_bridge.tcl \
44+
|| { echo "ERROR" ; exit 1 ; }
45+
}
46+
47+
[ "$(basename $(dirname $(pwd)))" == "brd_criticallink_mitysbc_es" ] && {
48+
sed \
49+
-e "s/250000000/200000000/" \
50+
../../common_pd_subsystems/do_create_spi_bridge.tcl \
51+
> do_create_spi_bridge.tcl \
52+
|| { echo "ERROR" ; exit 1 ; }
53+
}
54+
3555
# build the hardware
3656
(
3757
ln -s ../hw_base/custom_ip.ipx . && \

common_pd_subsystems/hw_spi_bridge/create_pd_sys.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package require -exact qsys 23.4
88
source ./do_create_no_pins_pd_top.tcl
99

1010
# create the system "spi_bridge"
11-
source ../../common_pd_subsystems/do_create_spi_bridge.tcl
11+
source ./do_create_spi_bridge.tcl
1212

1313
# create the system "no_periph"
1414
source ../../common_pd_subsystems/do_create_no_periph.tcl

common_pd_subsystems/hw_uart/build_hw.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ cd $(dirname ${0})
3333
exit 0
3434
}
3535

36+
# prep the source that requires config clock frequency
37+
cp ../../common_pd_subsystems/do_create_uart.tcl do_create_uart.tcl \
38+
|| { echo "ERROR" ; exit 1 ; }
39+
40+
[ "$(basename $(dirname $(pwd)))" == "brd_altera_a5e065_premium_es" ] && {
41+
sed \
42+
-e "s/250000000/200000000/" \
43+
../../common_pd_subsystems/do_create_uart.tcl \
44+
> do_create_uart.tcl \
45+
|| { echo "ERROR" ; exit 1 ; }
46+
}
47+
48+
[ "$(basename $(dirname $(pwd)))" == "brd_criticallink_mitysbc_es" ] && {
49+
sed \
50+
-e "s/250000000/200000000/" \
51+
../../common_pd_subsystems/do_create_uart.tcl \
52+
> do_create_uart.tcl \
53+
|| { echo "ERROR" ; exit 1 ; }
54+
}
55+
3656
# build the hardware
3757
(
3858
ln -s ../hw_base/custom_ip.ipx . && \

common_pd_subsystems/hw_uart/create_pd_sys.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package require -exact qsys 23.4
88
source ./do_create_no_pins_pd_top.tcl
99

1010
# create the system "uart"
11-
source ../../common_pd_subsystems/do_create_uart.tcl
11+
source ./do_create_uart.tcl
1212

1313
# create the system "no_periph"
1414
source ../../common_pd_subsystems/do_create_no_periph.tcl

0 commit comments

Comments
 (0)