Skip to content

Commit bae1409

Browse files
authored
Merge image_v3.1.1 into master for v3.1.1 release
2 parents 19ed17d + ccde228 commit bae1409

File tree

21 files changed

+201
-150
lines changed

21 files changed

+201
-150
lines changed

CITATION.cff

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cff-version: 1.2.0
2+
message: "If you use PYNQ in your research, please cite it using the metadata below."
3+
authors:
4+
- name: 'Advanced Micro Devices, Inc.'
5+
title: "PYNQ"
6+
type: software
7+
license: 'BSD-3-Clause'
8+
version: 3.1.1
9+
date-released: "2025-09-24"
10+
url: 'https://pynq.io'
11+
repository-code: "https://github.com/Xilinx/PYNQ"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ for how to improve PYNQ.
5252

5353
Please ask questions on the <a href="https://discuss.pynq.io" target="_blank">PYNQ support forum</a>.
5454

55+
## Citing PYNQ
56+
57+
If you use PYNQ in your research, please cite this GitHub repository by using the metadata given in <a href="https://github.com/Xilinx/PYNQ/blob/master/CITATION.cff" target="_blank">CITATION.cff</a>.
58+
5559
## Licenses
5660

5761
**PYNQ** License: [BSD 3-Clause License](https://github.com/Xilinx/PYNQ/blob/master/LICENSE)

build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Builds final pynq source distribution with overlays and BSPs included
55

6-
VERSION := 3.1.0
6+
VERSION := 3.1.1
77
SDIST := dist/pynq-$(VERSION).tar.gz
88

99
BITS := boards/Pynq-Z1/logictools/logictools.bit \

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def __getattr__(cls, name):
100100
# built documents.
101101
#
102102
# The short X.Y version.
103-
version = '3.1'
103+
version = '3.1.1'
104104
# The full version, including alpha/beta/rc tags.
105-
release = '3.1'
105+
release = '3.1.1'
106106

107107
# The language for content autogenerated by Sphinx. Refer to documentation
108108
# for a list of supported languages.

docs/source/getting_started/terminal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you can't access the terminal from Jupyter, you can connect the micro-USB
55
cable from your computer to the board and open a terminal. You can use the
66
terminal to check the network connection of the board. You will need to have
77
terminal emulator software installed on your computer. `PuTTY
8-
<http://www.putty.org/>`_ is one application that can be used, and is available
8+
<http://putty.software/>`_ is one application that can be used, and is available
99
for free on Windows. To open a terminal, you will need to know the COM port for
1010
the board.
1111

docs/source/pynq_sd_card.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ build environment on your host OS using the following steps:
9393
9494
Replace ``/tools/Xilinx`` and ``/home/user/petalinux`` with the actual paths
9595
to your Xilinx installations on the host system. The ``:ro`` option mounts
96-
tool directories read-only, and ``--privileged`` is required for parts of
96+
tool directories as read-only, and ``--privileged`` is required for parts of
9797
the build process.
9898

9999
5. Inside the container, set up the tool environment:
@@ -109,11 +109,6 @@ build environment on your host OS using the following steps:
109109
Navigate to the sdbuild directory and follow the building instructions
110110
in the next section.
111111

112-
.. note::
113-
Rebuilding the PYNQ source distribution (SDIST) currently does not work
114-
inside Docker due to limitations in the Vitis tools. If you need to
115-
rebuild the SDIST, consider using a virtual machine with a supported
116-
Ubuntu distribution instead.
117112

118113
Use an existing Ubuntu OS
119114
-------------------------

pynq/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from .pmbus import DataRecorder, get_rails
2525

2626
__all__ = ["lib", "tests"]
27-
__version__ = "3.1"
27+
__version__ = "3.1.1"
2828
# This ID will always be tied to a specific release tag
2929
# since the file will be modified to edit the version
3030
__git_id__ = "$Id$"

pynq/lib/video/pcam5c.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import contextlib
55
import os
66
from enum import Enum
7+
import glob
78

89
import cffi
910

@@ -67,10 +68,22 @@ def __init__(self, description):
6768
virtaddr_gamma_lut = self.gamma_lut.mmio.array.ctypes.data
6869
virtaddr_demosaic = self.demosaic.mmio.array.ctypes.data
6970

70-
# todo read /sys/bus/i2c/devices/i2c-6/of_node/label
71-
71+
i2c_devices = glob.glob('/dev/i2c-*')
72+
i2c_index = 6 ## legacy
73+
for dev_path in i2c_devices:
74+
adapter_number = os.path.basename(dev_path).split('-')[-1]
75+
name_path = f'/sys/bus/i2c/devices/i2c-{adapter_number}/of_node/label'
76+
try:
77+
with open(name_path, 'r') as name_file:
78+
label = name_file.read().strip()
79+
if 'RPICAM' in label:
80+
i2c_index = int(adapter_number)
81+
except FileNotFoundError:
82+
continue
83+
84+
print(i2c_index)
7285
self._handle = pcam5c_lib.pcam_mipi(
73-
6,
86+
i2c_index,
7487
int(MIPIMode.r1280x720_60.value),
7588
virtaddr_gpio_ip_reset,
7689
virtaddr_v_proc_sys,

pynq/pl_server/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def load_ip_data(self, ip_name, data, zero=False):
233233
ip_dict = self.ip_dict
234234
mem_dict = self.mem_dict
235235
if ip_name in ip_dict:
236-
address = ip_dict[ip_name]["addr_range"]
236+
address = ip_dict[ip_name]["base_address"]
237237
target_size = ip_dict[ip_name]["addr_range"]
238238
elif ip_name in mem_dict:
239239
address = mem_dict[ip_name]["base_address"]

pynq/pl_server/embedded_device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ def gen_cache(self, bitstream, parser=None):
646646

647647
if os.path.exists(bitstream.bitfile_name):
648648
gs=GlobalState(bitfile_name=str(bitstream.bitfile_name),
649+
bitfile_hash=bitstream_hash(bitstream.bitfile_name),
649650
timestamp=ts,
650651
active_name=self.name,
651652
psddr=parser.mem_dict.get("PSDDR", {}))

0 commit comments

Comments
 (0)