Skip to content

Instantly share code, notes, and snippets.

View edcote's full-sized avatar
🎯
Googler

Edmond Cote edcote

🎯
Googler
View GitHub Profile
@edcote
edcote / zeppelin.md
Last active June 29, 2018 17:01
Apache Zeppelin

Installation

Download tool from here. Unzip, then launch: bin/zeppelin-daemon.sh start

Then, browse to http://localhost:9009/#/

Here is an example Systemd service file:

$ cat /etc/systemd/system/zeppelin.service 

[Unit]

@edcote
edcote / spark.md
Last active July 17, 2018 19:23
Apache Spark
@edcote
edcote / synplify.md
Created April 9, 2018 15:25
Synplify

Timing constraints

Synplify users are recommended to use FDC format constraint files. I have found the TCL View and constraint syntax checker in constraint editor GUI to be helpful.

# clocks
create_clock -name {clk_20} [get_ports {clock}] -period 20
# inputs/output delays
set_input_delay  -clock {c:clk_20} -add_delay [expr {20*0.01}] [all_inputs]
set_output_delay -clock {c:clk_20} -add_delay [expr {20*0.01}] [all_outputs]
@edcote
edcote / vim.md
Last active April 9, 2018 16:49
Vim Tips

Helpful shortcuts

  • Format the current line: gq
  • Go file: gf
@edcote
edcote / IPexpress.md
Last active April 9, 2018 16:48
Lattice IPexpress

DDR3 SDRAM Controller

  1. Click IP server, wait until list of IP modules load
  2. Select version 3.1, right click install, install under /mnt/raid/ip/ecp3/
  3. Configure and select project path as src/main/resources/ecp3, file name = ip_ddr3_sdram, device = LFE3-35EA-8FN484C

DRAM part numbering guide

Datasheet

@edcote
edcote / riscvtests.md
Created April 9, 2018 16:48
RISC-V Tests

Test Virtual Machines (TVMs)

`rv32ui` | RV32 user-level, integer only
`rv32si` | RV32 supervisor-level, integer only
`rv64ui` | RV64 user-level, integer only
`rv64uf` | RV64 user-level, integer and floating-point
`rv64uv` | RV64 user-level, integer, floating-point, and vector
`rv64si` | RV64 supervisor-level, integer only
`rv64sv` | RV64 supervisor-level, integer and vector
@edcote
edcote / wordpress.md
Created April 10, 2018 01:42
WordPress

Getting Started

Assuming Ubuntu 17.10:

# install packages
sudo apt upgrade
sudo apt update
# mysql-server will ask for root password, set it
sudo apt install mysql-server

sudo apt install apache2

@edcote
edcote / research.md
Last active April 20, 2018 22:44
Research Papers and Articles

A. Caulfield et al., "A Cloud-Scala Acceleration Architecture"

New cloud architecture that uses FPGA to accelerate network plane functions (encryption) and applications (search ranking).

Network flows can be transformed at line rate using FPGAs.

FPGA are placed between NIC and CPU in each node of network. Three scenarios: local compute acceleration (through PCIe), network acceleration, and global application acceleration.

M. Abadi et al., "TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems"

@edcote
edcote / ft232h.md
Last active December 23, 2019 15:05
Adafruit FT232H Breakout Notes

I purchased Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C from Amazon

Preliminaries

  • First, check if device is detected
$ lsusb
Bus 003 Device 018: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
@edcote
edcote / go.md
Created April 30, 2018 02:45
Go
  • Download and untar latest version of go at www.golang.org
  • Set GOPATH and GOROOT environment variables. GOROOT points to go binary install. GOPATH points to your workspace (e.g. $HOME/go).

Notes from https://github.com/alco/gostart:

  • Go is only compatible with code that resides in a workspace.
  • Go does not allow you to depend on specific versions of external packages.
  • There are no local packages, only fully qualified imports.
  • All files in a single directory belong to one package