Skip to content

Quick & Flexible Rack-Scale Computer Architecture Simulator

Notifications You must be signed in to change notification settings

parsa-epfl/qflex

Repository files navigation

QFlex

State-of-the-art modeling tools for the computer architecture community.
The QFlex project targets quick, accurate, and flexible simulation of computer systems

QFlex
Documentation | GitHub | Website

  • Functional-First. 1 MIPS functional first simulation.
  • 🕰 Timing-First. 70 KIPS cycle-accurate simulation.
  • 🗂️ Components-based. Create custom components.
  • Free. QFlex is completely free and open source.

More information regarding the build system and other subsystem of QFlex can be found in the docs.

1. Tools

The following packages should be installed to build QFlex

2. Clone repositories

git clone --recursive https://github.com/parsa-epfl/qflex

3. Build QEMU

./build cq

4. Build Flexus

 conan profile detect #One time only
./build keenkraken
./build knottykraken

5. Create symlinks

ln -s qemu/build/aarch64-softmmu/qemu-system-aarch64 qemu-aarch64

6. Add Images

Download a simple image and place it the repository root location.

wget https://github.com/parsa-epfl/qflex/releases/latest/download/images.tar.xz
tar -xvf images.tar.xz

The repository tree under images folder should look like this.

images/
├── busybox
└── Busybox
    ├── Image
    ├── rootfs.ext4
    └── rootfs.qcow2

7. Run

./runq images/bb-trace # run keenkraken release version
./runq images/bb-timing # run knottykraken release version

The filesystem now contains basic tools provided by /bin/busybox like ls, cd, etc.

Made with contrib.rocks.

This software is an open-sourced software licensed under the following license:

***Software developed externally (not by the QFlex group)***

QFlex consists of several software components that are governed by various
licensing terms, in addition to software that was developed internally.
Anyone interested in using QFlex needs to fully understand and abide by the
licenses governing all the software components.

  * [QEMU] (https://wiki.qemu.org/License)
  * [Boost] (https://www.boost.org/users/license.html)
  * [Conan] (https://github.com/conan-io/conan/blob/develop2/LICENSE.md)

**QFlex License**

QFlex
Copyright (c) 2024, Parallel Systems Architecture Lab, EPFL
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
 * Neither the name of the Parallel Systems Architecture Laboratory, EPFL,
   nor the names of its contributors may be used to endorse or promote
   products derived from this software without specific prior written
   permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE PARALLEL SYSTEMS ARCHITECTURE LABORATORY,
EPFL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.