Coder Social home page Coder Social logo

zzfd97 / oram_fpga Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kwonalbert/oram_fpga

0.0 0.0 0.0 12.31 MB

FPGA related files for ORAM

Tcl 0.05% Verilog 21.88% Python 0.06% VHDL 71.95% SystemVerilog 0.70% Shell 0.02% Stata 0.02% Assembly 5.27% C 0.01% Makefile 0.01% Forth 0.03% Batchfile 0.01%

oram_fpga's Introduction

================================================================================

  Tiny ORAM: A low-latency, low-area hardware ORAM controller 
                  with integrity verification

    by:       Chris Fletcher, Ling Ren, Albert Kwon, 
	    Marten van Dijk, Emil Stefanov and Srinivas Devadas

================================================================================

This README describes the tiny ORAM directory structure and gives some performance/area statistics to sanity check your tools.

NOTE 1: All files in this project assume that tabs = 4 spaces. Configure your text editor accordingly!

NOTE 2: Make sure to point /oram to branch 'oram_fpga_public', NOT 'master'.


Directory tree

./oram The ORAM core, platform-independent code only. ./gatelib Library modules used by the ORAM core. ./boards FPGA board specific code, constraint files, test bitstreams and Xilinx IP (Intellectual Property). ./tests Verilog testbenches for behavioural simulation and Verilog for the FPGA board tests found in /boards. ./scripts TODO.

For further explanations and instructions, we have included additional README files:

./oram/README.txt: Gives an overview for the Tiny ORAM architecture, code organization and conventions.

./tests/README.txt: Infrastructure for doing sophisticated unit tests on the ORAM (a bit out of date -- for how to run the code in simulation, see below "Quick Installation"). Gives infrastructure for how to verify that your FPGA board isn't broken.


Quick installation

1.) Test the code.

1a.) Create an FPGA project (e.g., Xilinx Vivado or ISE).

1b.) Add all verilog (including .vh files) from ./oram/ and ./gatelib/*.

1c.) Add these flags/macros when simulating/synthesizing: MACROSAFE=1 SIMULATION=1 SIMULATION_VIVADO=1 FPGA_MEMORY=1

1d.) Use ./oram/frontend/test/testUORAM.v as the top level testbench. Run this simulation for a while and inspect the waveforms to see how it works.

There are also some more sophisticated/automated testbenches but they are a bit out of date: See ./tests/README.txt for more information.

2.) Test your board.

If you plan to only work in software/RTL simulation, you can skip this step.

Before creating a bitstream and running Tiny ORAM on your board, you should make sure the hardware (e.g., the DRAM) on your board works correctly. We have designed some out-of-the-box sanity checks to test your board's hardware. See ./tests/README.txt for more information.


Expected performance/area figures

See this paper:

Christopher W. Fletcher, Ling Ren, Albert Kwon, Marten van Dijk, Emil Stefanov, Dimitrios Serpanos, Srinivas Devadas. 2015. A Low-Latency, Low-Area Hardware Oblivious RAM Controller. In Proceedings of FCCM'15.

oram_fpga's People

Contributors

cwfletcher avatar kwonalbert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.