Skip to content

Instantly share code, notes, and snippets.

View Badboy1307's full-sized avatar
💭
HGA

John Samuel Ebenezer Badboy1307

💭
HGA
View GitHub Profile
@jancumps
jancumps / collect_pynq_artifacts.tcl
Created August 13, 2021 19:51
collect and name the .hwh and .bit file from a Vivado project for deploy on Pynq. Execute from IDE or Tcl Shell with the project open.
set project_path [get_property directory [current_project]]
set project_file [file rootname $project_path]
set __project [current_project]
set hw_dir [file dirname [get_files *.hwh]]
set hwhandoff [glob [file join $hw_dir *.hwh]]
set bitstream [glob [file join $project_path $__project.runs impl_1 *.bit]]
#gather in the .prj directory
file copy -force $hwhandoff $project_file.hwh
file copy -force $bitstream $project_file.bit
shared_lib_path = "./add.so"
if platform.startswith('win32'):
shared_lib_path = "./add.dll"
try:
add_lib = CDLL(shared_lib_path)
print("Successfully loaded ", add_lib)
except Exception as e:
print(e)
@reedkotler
reedkotler / graph-tool-install.adoc
Created September 1, 2017 18:45
Installing graph-tool from source with Anaconda

Installing graph-tool from source with Anaconda

System

OS

Arch Linux 4.9.11 x86_64

Python Distribution

Anaconda Python 3 https://www.continuum.io/downloads#linux

These installation instructions are adapted from the official ones at