Skip to content

Instantly share code, notes, and snippets.

@imrickysu
imrickysu / enable_bitstream_compression.xdc
Last active April 19, 2018 14:04
Vivado enable bitstream compression
# From UG908
# Add the following command to xdc can make it take effect
set_property BITSTREAM.GENERAL.COMPRESS True [current_design]
@imrickysu
imrickysu / cd_project_directory.tcl
Created May 8, 2014 07:07
change working directory to project root directory
# This command is supported in Vivado.
cd [get_property DIRECTORY [current_project ]]
# Set it in "Customize Commands" can help to improve productivity.
@imrickysu
imrickysu / vivado_synth_ooc.tcl
Created May 17, 2014 15:25
prevent Vivado synthesis inserting IO to the netlist
synth_design -mode out_of_context
#For more info, refer to UG901.
@imrickysu
imrickysu / trip_plan_helper.md
Last active August 29, 2015 14:01
Useful websites in travel planing
@imrickysu
imrickysu / file2bram.tcl
Created October 31, 2014 03:46
A demo to write to BRAM from File and read from BRAM to file for JTAG2AXI IP Core.
# Usage
# > settings64.bat
# > vivado -mode batch -source file2bram.tcl
# Note: Bitstream needs to be downloaded and running first
#################################################
# file2bram
@imrickysu
imrickysu / ila_data_rw.tcl
Created July 14, 2015 09:00
ILA Waveform Manipulation
# Write ILA data into zip file
write_hw_ila_data filename.zip
# Read the waveform data in Vivado
open_hw
display_hw_ila_data [read_hw_ila_data filename.zip]
@imrickysu
imrickysu / download_bit.bat
Created August 19, 2015 06:28
Use XMD to download FPGA bit stream with one click.
set BIT_FILENAME=ps_emio_sfp.bit
echo fpga -f %BIT_FILENAME% > download_bit.tcl
call C:\Xilinx\SDK\2014.4\bin\xmd.bat -tcl download_bit.tcl
del download_bit.tcl
@imrickysu
imrickysu / xapp1078_2014.4.markdown
Last active July 13, 2018 11:16
The instructions of creating an AMP example design with PetaLinux tools

Xapp1078 Instructions for Vivado 2014.4

NOTE: The zedBoard flow has not been verified

Note: This xapp requires using a Linux host to compile the embedded Linux kernel. The instructions have been setup such that all implementation work will be done in a directory called xapp1078_2014.4/design and all linux work will be done in a directory called xapp1078_2014.4/plnx-project. The instructions will require files to be copied between xapp1078_2014.4/design and xapp1078_2014.4/plnx-project so if the Vivado and SDK tools are ran on a Windows machine, the files will need to be copied from the Windows xapp1078_2014.4/design to the Linux machine's xapp1078_2014.4/plnx-project.

@imrickysu
imrickysu / sdsoc_rootfs_unpack.sh
Created November 5, 2015 02:22
unpack sdsoc rootfs
# refer to http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs
dd if=uramdisk.image.gz bs=64 skip=1 of=ramdisk.image.gz
mkdir tmp_mnt
gunzip -c ramdisk.image.gz | sudo sh -c 'cd tmp_mnt/ && cpio -i'
cd tmp_mnt