Skip to content

Commit a8b3b33

Browse files
authored
Merge pull request #911 from slaclab/pre-release
Release Candidate v2.25.1
2 parents 8caa69a + 7f8c52c commit a8b3b33

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

base/fifo/rtl/xilinx/FifoAlteraMfDummy.vhd renamed to base/fifo/rtl/dummy/FifoAlteraMfDummy.vhd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ architecture mapping of FifoAlteraMf is
6464

6565
begin
6666

67+
assert (false)
68+
report "surf.base.fifo: FifoAlteraMf not supported" severity failure;
69+
6770
end mapping;

base/fifo/rtl/altera/FifoXpmDummy.vhd renamed to base/fifo/rtl/dummy/FifoXpmDummy.vhd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ architecture mapping of FifoXpm is
6464

6565
begin
6666

67+
assert (false)
68+
report "surf.base.fifo: FifoXpm not supported" severity failure;
69+
6770
end mapping;

base/fifo/ruckus.tcl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
source -quiet $::env(RUCKUS_DIR)/vivado_proc.tcl
33

44
# Load Source Code
5-
loadSource -lib surf -dir "$::DIR_PATH/rtl"
6-
loadSource -lib surf -dir "$::DIR_PATH/rtl/xilinx"
7-
loadSource -lib surf -dir "$::DIR_PATH/rtl/inferred"
5+
loadSource -lib surf -dir "$::DIR_PATH/rtl"
6+
loadSource -lib surf -dir "$::DIR_PATH/rtl/inferred"
7+
loadSource -lib surf -path "$::DIR_PATH/rtl/dummy/FifoAlteraMfDummy.vhd"
88

99
# Load Simulation
1010
loadSource -lib surf -sim_only -dir "$::DIR_PATH/tb"
11+
12+
# Case on the Vivado Version
13+
if { $::env(VIVADO_VERSION) < 2019.1 } {
14+
# Load a dummy module
15+
loadSource -lib surf -path "$::DIR_PATH/rtl/dummy/FifoXpmDummy.vhd"
16+
puts "\n\nWARNING: surf.base.fifo.xpm requires Vivado 2019.1 (or later)\n\n"
17+
} else {
18+
# Load the wrapper
19+
loadSource -lib surf -path "$::DIR_PATH/rtl/xilinx/FifoXpm.vhd"
20+
}

python/surf/axi/_AxiVersion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, numUserConstants = 0, **kwargs):
6969
))
7070

7171
def parseUpTime(var,read):
72-
seconds=var.dependencies[0].get(read)
72+
seconds=var.dependencies[0].get(read=read)
7373
if seconds == 0xFFFFFFFF:
7474
click.secho(f'Invalid {var.path} detected', fg='red')
7575
return 'Invalid'
@@ -189,7 +189,7 @@ def UserRst():
189189
name = 'GitHashShort',
190190
mode = 'RO',
191191
dependencies = [self.GitHash],
192-
linkedGet = lambda read: f'{(self.GitHash.get(read) >> 132):07x}',
192+
linkedGet = lambda read: f'{(self.GitHash.get(read=read) >> 132):07x}',
193193
))
194194

195195
self.add(pr.RemoteVariable(
@@ -214,7 +214,7 @@ def UserRst():
214214
))
215215

216216
def parseBuildStamp(var,read):
217-
buildStamp = var.dependencies[0].get(read)
217+
buildStamp = var.dependencies[0].get(read=read)
218218
if buildStamp is None:
219219
return ''
220220
else:

python/surf/devices/analog_devices/_Ad9249.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def setDelay(var, value, write):
394394

395395
@staticmethod
396396
def getDelay(var, read):
397-
return var.dependencies[0].get(read)
397+
return var.dependencies[0].get(read=read)
398398

399399
def readBlocks(self, *, recurse=True, variable=None, checkEach=False, index=-1, **kwargs):
400400
"""

xilinx/general/microblaze/bd/2021.1/MicroblazeBasicCore.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if { ${design_name} eq "" } {
8888
set errMsg "Design <$design_name> already exists in your project, please set the variable <design_name> to another value."
8989
set nRet 1
9090
} elseif { [get_files -quiet ${design_name}.bd] ne "" } {
91-
# USE CASES:
91+
# USE CASES:
9292
# 6) Current opened design, has components, but diff names, design_name exists in project.
9393
# 7) No opened design, design_name exists in project.
9494

@@ -125,7 +125,7 @@ set bCheckIPsPassed 1
125125
##################################################################
126126
set bCheckIPs 1
127127
if { $bCheckIPs == 1 } {
128-
set list_check_ips "\
128+
set list_check_ips "\
129129
xilinx.com:ip:axi_gpio:2.0\
130130
xilinx.com:ip:axi_intc:4.1\
131131
xilinx.com:ip:axi_timer:2.0\

0 commit comments

Comments
 (0)