Coder Social home page Coder Social logo

bochen-ye / tiny_soc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 126 KB

This is my hobby project, which contain my rsic-v core and my convolutional layer with AMBA bus

License: MIT License

Python 8.59% Verilog 48.08% SystemVerilog 43.33%
accelerator ahb apb bus rsic-v soc system-design systemverilog verilog-project

tiny_soc's Introduction

Tiny_SoC

This is my hobby project. After I study RSIC-V CPU and Tiny_LeViT accelerator, I wonder how to connect them with bus, so I make this Tiny_SoC project.

This is not a serious project, so it must be very simple and have many problems. I finish this project with ChatGPT which help me a lot.

Anyway, this project is only for study and understanding SoC.

File Structure

  • figure : the figure of project.
  • instruction : contain a python file which can translate RSIC-V instruction to binary code for core excution.
  • sim : the testbench for simulation.
  • src : the RTL file of design.

Architecture

This Tiny_project architecture is all finished by myself. The main part is a RSIC-V CPU and Tiny_LeViT accelerator that I made before. I use AHB-Lite bus connect core, memory and accelerator. ALL architecture you can see in figure below.

  • APB is not add until Now.
  • I2C is not add until Now.
  • The Wrapper is only for Conv4 core, I will extend to whole LeViT accelerator.

Tiny_SoC Architecture

RSIC-V instruction

  • This CPU can excute 13 instructions (sw,lw,add,sub,and,or,slt,addi,ori,slti,beq,jal,lui).
  • You can use instruction/Rsicv2bin.py to get .txt binary file and add it to simulation.

SoC Address

  • 32'd0100_0000: RAM, data meomry.
  • 32'd1000_0000: Tiny_LeViT Accelerator.

Future Plan

  • Finish whole accelerator warpper.
  • Add APB and I2C.
  • Add DMA.
  • Improve RSIC-V core.
  • Add Interrupt control module.
  • Add peripheral device: SPI, UART, GPIO, Timer.

SoC Study Resource

  • Book:

System on Chip (SOC) Architecture: A Practical Approach

A Practical Approach to VLSI System on Chip (SoC) Design: A Comprehensive Guide

  • Course:

一生一芯ysyx

SoC 101

tiny_soc's People

Contributors

bochen-ye avatar

Watchers

 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.