Skip to content

Instantly share code, notes, and snippets.

View cathalmccabe's full-sized avatar

Cathal McCabe cathalmccabe

View GitHub Profile
@cathalmccabe
cathalmccabe / pynq_dma_loopback_example.ipynb
Created March 16, 2017 08:12
PYNQ DMA FIFO loopback example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cathalmccabe
cathalmccabe / capture_hdmi_display_notebook_hdmi.ipynb
Created March 27, 2017 12:36
PYNQ v1.3 capture HDMI and display in notebook and output to HDMI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cathalmccabe
cathalmccabe / vec_add.cpp
Last active December 4, 2017 16:10
HLS example of vector add with AXI stream interfaces for data, and AXI lite interface for control
#include <iostream>
#include <hls_stream.h>
#include <ap_axi_sdata.h>
using namespace std;
typedef ap_axis <32,1,1,1> AXI_T;
typedef hls::stream<AXI_T> STREAM_T;
void vec_add(STREAM_T &A, STREAM_T &B, STREAM_T &C, int LEN){
@cathalmccabe
cathalmccabe / script.tcl
Created December 4, 2017 16:05
Vivado HLS script to build vec_add.cpp
# Script to build vec_add.cpp
open_project vec_add
set_top vec_add
add_files vec_add.cpp
open_solution "solution1"
set_part {xc7z020clg400-1} -tool vivado
create_clock -period 7 -name default
csynth_design
export_design -format ip_catalog -description "vec_add" -display_name "vec_add"
exit
# Script to build vec_add.cpp HLS IP
open_project vec_add
set_top vec_add
add_files vec_add.cpp
open_solution "solution1"
set_part {xc7z020clg400-1} -tool vivado
create_clock -period 7 -name default
csynth_design
export_design -format ip_catalog -description "vec_add" -display_name "vec_add"
exit
@cathalmccabe
cathalmccabe / hls_example_wrapper.tcl
Last active January 25, 2023 09:21
HLS stream example
################################################################
# This is a generated script based on design: streams_example
#
# Though there are limitations about the generated script,
# the main purpose of this utility is to make learning
# IP Integrator Tcl commands easier.
################################################################
namespace eval _tcl {
@cathalmccabe
cathalmccabe / my_notebook.ipynb
Created March 9, 2018 11:05
My test notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cathalmccabe
cathalmccabe / cifar10.ipynb
Created April 5, 2018 15:05
Example my notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cathalmccabe
cathalmccabe / leds.ipynb
Created July 8, 2018 10:49
LED example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.