Coder Social home page Coder Social logo

extraordyxp / mc1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrisc32/mc1

0.0 0.0 0.0 1.36 MB

A computer (FPGA SoC) based on the MRISC32-A1 CPU

License: zlib License

VHDL 24.06% Verilog 0.55% Python 2.06% Assembly 2.65% Makefile 0.89% C 55.21% C++ 14.59%

mc1's Introduction

MC1 logo

MC1 is a compact computer intended for FPGA:s, based on the MRISC32-A1 soft microprocessor.

The architecture is portable and configurable to fit a wide range of FPGA devices and boards.

Architecture

MC1 diagram

The artchitecture is based around a tightly integrated and flexible video subsystem, which shares memory with the CPU.

The shared video RAM (VRAM) has two memory ports - one dedicated to the CPU and one dedicated to the video logic. This enables single-cycle access for both, and the CPU and the video logic can run at different frequencies.

CPU

The CPU is a full MRISC32-A1, with support for floating point and vector operations.

Connected to the CPU are on-chip ROM and RAM memories. The ROM holds the boot code (in lack of external flash memory or similar, it contains the entire program/system code). Furthermore, external RAM (such as DRAM or SRAM) can be accessed, provided that a suitable Wishbone compatible memory controller is added (depending on which FPGA board you are targeting).

Video

The video logic produces 24-bit RGB output and horizontal and vertical sync signals in 1920x1080 (1080p), suitable for VGA, DVI and HDMI interfaces, for instance.

Screenshot

One key feature of the video logic is that it has a programmable video control processor that runs in sync with the raster signals, making it possible to get the most out of limited memory resources while offloading the CPU for certain tasks.

Examples of things that a video control program can accomplish are:

  • Control things like the vertical and horizontal resolution and the color mode on a per-line basis.
  • Control the color palette on a per-line basis.
  • Vertical and horizontal mirroring.
  • Vertical and horizontal repeating of patterns.

This means that it is possible to mix resolutions and color modes in a single frame, and you can fill the screen with rich colors and high resolution content even with very limited video RAM resources.

For more details, see the video logic documentation.

I/O

Primitive I/O, such as reading buttons and switches and writing to leds and seven-segment displays, is provided as memory mapped I/O (see the MC1 memory map), directly accessible for the CPU.

Keyboard input is provided for boards that have a PS/2 connector.

Operating system

No operating system is planned at this point. There will be libraries of helper routined (e.g. for I/O and timing) that can be statically linked to MC1 binaries.

Once file loading capabilities are implemented, the ROM code will be able to load a program binary into RAM, and all system control is transfered to the loaded program (so it's essentially a two-stage boot).

Planned features

The following things are not yet implemented, but planned:

  • CPU:
    • Interrupt signals from the video logic (e.g. VSYNC), once interrupt logic has been added to the MRISC32.
  • Audio:
    • Some sort of high quality audio DMA, integrated with the video logic (sharing the same RAM read port).
    • Possibly some sort of waveform synthesis for low RAM systems.
  • Memory:
    • Support for off-chip RAM (e.g. DRAM or SRAM) - probably with an on-chip L2 cache.
  • I/O:
    • A Micro SD interface to read programs and data.
    • Mouse input.

mc1's People

Contributors

mbitsnbites 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.