• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language VHDL
  • License
    BSD 2-Clause "Sim...
  • Created over 13 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Patmos is a time-predictable VLIW processor, and the processor for the T-CREST project

About Patmos

Patmos is a time-predictable VLIW processor. Patmos is the processor for the T-CREST project. See also: http://www.t-crest.org/ and http://patmos.compute.dtu.dk/

The Patmos Reference Handbook contains build instructions in Section 5.

For questions and discussions use the GitHub discussion area of Patmos at: https://github.com/t-crest/patmos/discussions

Getting Started

In the following the installation and of the T-CERST/Patmos tools and design on a Linux machine is described.

A Virtual Machine for Development

However, we also provide a VMWare virtual machine with Ubuntu 20.04 and all tools installed and compiled at:

The user id is patmos and the password is also patmos.

Linux (Ubuntu) based Installation

Several packages need to be installed. The following apt-get lists the packages that need to be installed on a Ubuntu Linux:

sudo apt-get install git openjdk-11-jdk gitk cmake make g++ texinfo flex bison \
  subversion libelf-dev graphviz libboost-dev libboost-program-options-dev ruby-full \
  liblpsolve55-dev zlib1g-dev gtkwave gtkterm scala autoconf libfl2 expect verilator curl

Install sbt according to the instructions from sbt download

We assume that the T-CREST project will live in $HOME/t-crest. Before building the compiler, add the path to the compiler executables into your .bashrc or .profile:

export PATH=$PATH:$HOME/t-crest/local/bin

Use an absolute path as LLVM cannot handle a path relative to the home directory (~). Logout and login again to make your new PATH setting active.

Patmos and the compiler can be checked out from GitHub and are built as follows:

mkdir ~/t-crest
cd ~/t-crest
git clone [email protected]:t-crest/patmos-misc.git misc
./misc/build.sh

Without a GitHub login the ssh based clone string is:

git clone https://github.com/t-crest/patmos-misc.git misc

build.sh will checkout several other repositories (the compiler, library, and the Patmos source) and build the compiler and the Patmos simulator. Therefore, take a cup of coffee and find some nice reading (e.g., the Patmos Reference Handbook).

You can also install (quicker) the precompiled tools with:

./misc/build.sh -q

Hello World

We can start with the standard, harmless looking Hello World:

main() {
    printf("Hello Patmos!\n");
}

With the compiler installed it can be compiled to a Patmos executable and run with the sw simulator and the hardware emulation as follows:

patmos-clang hello.c
pasim a.out
patemu a.out

However, this innocent examples is quite challenging for an embedded system. For further details and how to build Patmos for an FPGA see Section 6 in the Patmos Reference Handbook.

You can also build the Patmos handbook yourself from the source. You first need to install LaTeX (about 3 GB) with:

sudo apt-get install texlive-full doxygen

The handbook is then built with:

cd patmos/doc
make

More Repositories

1

patmos-benchmarks

A collection of benchmarks and tests for the Patmos processor and compiler
C
16
star
2

patmos-llvm

Port of the LLVM compiler infrastructure to the time-predictable processor Patmos
C++
15
star
3

s4noc

A Statically-scheduled TDM Network-on-Chip for Real-Time Systems
VHDL
13
star
4

argo

Argo is a time-division multiplexing network-on-chip.
Verilog
10
star
5

motor-ctrl-app

A motor control application running in Patmos using the Altera Power Board
Verilog
9
star
6

reconfig

Hardware and script files related to dynamic partial reconfiguration
Verilog
9
star
7

soc-comm

Collection of different communication methods for chip mulitprocessors
Scala
4
star
8

patmos-clang

Port of the clang front-end to the time-predictable processor Patmos
C++
4
star
9

sdram

A simple and static SDRAM controller for time-predictable main memory access
VHDL
4
star
10

iot-rt

Real-Time HTTP/TCP/IP Stack for IoT
C
4
star
11

patmos-newlib

Newlib port for Patmos
C
3
star
12

platin

Promela
3
star
13

poseidon

Static NoC TDM scheduler
C++
3
star
14

aegean

Configuration framework for the T-CREST platform (Aegean)
Python
2
star
15

patmos-simulator

Host the Patmos ISA simulator
C++
2
star
16

patmos-misc

Config files, scripts, and other stuff for Patmos
Python
2
star
17

rt-ua

Real-Time OPC UA
C
1
star
18

patmos-gold

Port of the binutils gold linker to Patmos
C
1
star
19

rtems

Port of the RTEMS real-time operating system to the time-predictable processor Patmos
C
1
star
20

patmos-lldb

Port of the LLDB debugger for Patmos.
C++
1
star
21

patmos-compiler-rt

Port of LLVM's compiler library
C
1
star
22

patmos-sail

Sail ISA model of Patmos
SMT
1
star
23

patmos-llvm-project

C++
1
star