Skip to content

Commit

Permalink
#2 New make DATABASE target: spartan3
Browse files Browse the repository at this point in the history
Signed-off-by: George Voicu <[email protected]>
  • Loading branch information
grvoicu committed Nov 25, 2022
1 parent ae61214 commit 5c2e760
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ check-license:
# Targets related to Project X-Ray databases
# ------------------------

DATABASES=artix7 kintex7 zynq7 spartan7
DATABASES=spartan3 artix7 kintex7 zynq7 spartan7

define database

Expand Down
37 changes: 37 additions & 0 deletions settings/spartan3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
#
# Copyright 2020-2022 F4PGA Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
export XRAY_DATABASE="spartan3"
export XRAY_PART="xc3s1200efg320-4"
export XRAY_ARCH="Spartan3"

export XRAY_ROI_FRAMES="0x00000000:0xffffffff"

# This is used by fuzzers/005-tilegrid/generate_full.py
# (special handling for frame addresses of certain IOIs -- see the script for details).
# This needs to be changed for any new device!
# If you have a FASM mismatch or unknown bits in IOIs, CHECK THIS FIRST.
export XRAY_IOI3_TILES=

source $(dirname ${BASH_SOURCE[0]})/../utils/environment.sh

env=$(python3 ${XRAY_UTILS_DIR}/create_environment.py)
ENV_RET=$?
if [[ $ENV_RET != 0 ]] ; then
return $ENV_RET
fi
eval $env
3 changes: 3 additions & 0 deletions settings/spartan3/devices.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# device to fabric mapping
"xc3s1200e":
fabric: "xc3s1200e"

0 comments on commit 5c2e760

Please sign in to comment.