Coder Social home page Coder Social logo

iob-cache's Introduction

iob-cache

IOb-cache is a high-performance configurable open-source Verilog cache. If you use or like this repository, please cite the following article:

Roque, J.V.; Lopes, J.D.; Véstias, M.P.; de Sousa, J.T. IOb-Cache: A High-Performance Configurable Open-Source Cache. Algorithms 2021, 14, 218. https://doi.org/10.3390/a14080218

IOb-cache supports pipeline architectures, allowing 1 request per clock cycle (read and write).

IOb-cache has both Native (pipelined) and AXI4 back-end interfaces.

The write policy is configurable: either write-through/not-allocate or write-back/allocate.

Configuration supports the number of ways, address-width, cache's word-size (front-end data with), the memory's word-size (back-end data width), the number of lines and words per line, replacement policy (if set associative), and cache-control module (allows performance measurement, cache invalidation and write-through buffer status).

Organization of the repository

/hardware/:

./src/: cache's Verilog sources.
	
	iob_cache, iob_cache_axi: IOb-Cache's top-level module, back-end Native 
	and AXI4 interface respectively.
	
	front_end: Front-End, interface that connects the cache to a master. 
	Only this modules requires to be adapted when implmenting a cache in a 
	different system.
	
	cache_memory: cache's core module, contains all memories (including 
	write-through buffer) and the "main-controller" (datapath that asserts ready 
	when all conditions are met).
	
	back_end_native, back_end_axi: Back-End modules, contain both the controllers 
	write_channel and read_channel respective for the top-level selected.
	
	replacement_policy: replacement policy module, only implemented if cache is 
	set-associative. Currently has LRU, PLRU mru-based, and PLRU (binary) tree-based.
	
	cache_control: optional module used for performance measurement (if 
	counters are implemented), cache invalidation and buffer status.
	

./header/: IOb-Cache's Verilog header source.

./simulation/: simulation sources, available for the cache (both native and AXI) 
and replacement policy module. Change the header files in this folder to change 
the test's settings. Requires Icarus Verilog and GTKwave.

./fpga/: synthesis sources, currently setup for Kintex KU040 Ultrascale FPGA

	synth.tcl: The module for the synthesis can be selected here.
	
	synth.xdc: The clock can be changed for different synthesis results (both 
	resources and timings).

/software/: Software C programing drivers.

/submodules/: Submodules required for both IOb-Cache (or its benchmarks) and other IObundle projects (IOb-SoC).

Clone the repository

git clone --recursive [email protected]:IObundle/iob-cache.git

Access to Github by ssh is mandatory so that submodules can be updated.

Simulation

The following commands will run the simulations. Requires Icarus Verilog and GTKWAVE.

To simulate IOb-Cache:

make sim

Follow by seeing the results using GTKWAVE

make gtkwave

To simulate Replacement Policy module:

make rp_sim

Follow by seeing the results using GTKWAVE

make gtkwave_rp

Synthesis

The following commands will run synthesis, requires Vivado (with application open: "source /Vivado's path/setting64.sh"). Setting can be changed in /hardware/fpga/"board of choice (currently only 1 available)".

make synth

Cleaning

The following command will clean all directories:

make clean

iob-cache's People

Contributors

joaovroque avatar jjts avatar jdlopes avatar p-miranda avatar andremerendeira avatar pedrompt97 avatar chrisedgley avatar arturum1 avatar kole-huang avatar

Watchers

James Cloos 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.