Table of Contents

Ledum

Ledum
320px-ledum_palustre_bluehend.jpg
founder: Yokotashi
depends on:
interested: abyssal
bluebear
ccx
hexo
joe
prilezitostnypetr
RAINBOF
sachy
santiago
tma
software license: FIXME
hardware license: FIXME

This project aims to design and develop a new central processing unit (CPU) with a primary focus on correctness and object capabilities. The design will prioritize formal verification techniques, ensuring the CPU’s functional correctness while introducing innovative approaches to resource management using object capabilities for improved security, efficiency, and modularity.

Project Objectives

  1. Achieve High Correctness in Design:
    • Use formal methods, simulation, and rigorous testing to verify that the CPU’s architecture is functionally correct.
    • Ensure that the CPU meets or exceeds industry standards for reliability and precision.
  2. Implement Object Capabilities Model:
    • Integrate an object capabilities model into the CPU’s architecture to allow fine-grained, secure management of memory and I/O resources.
    • Ensure that resource access control is embedded at the hardware level to improve security by default.
  3. Enable Scalable Security Mechanisms:
    • Design the CPU with scalable security features, leveraging capabilities to prevent unauthorized access and misuse of system resources.
    • Provide users with the flexibility to define and manage their own access control policies through object capabilities.
  4. Optimize Performance:
    • Ensure that the CPU achieves optimal performance in terms of throughput, latency, and power consumption, without compromising correctness or security.
    • Ensure, that the CPU architecture can be parallelized to achieve IPC>1 including OoO execution, although to do so isn't primary objective.
    • Balance hardware features for high-performance tasks with robust security measures for sensitive operations.
  5. Establish Robust Ecosystem Support:
    • Develop comprehensive software toolchains and drivers to support the object capability model.
    • Collaborate with industry partners to ensure broad compatibility with existing operating systems and applications.

Project Scope

In-Scope

Out of Scope

Workshops

As a part of our efforts, we have realized that different members of the team have different experience with various scientific and engineering fields and it would be very helpful to ensure that everyone has some basic understanding of all required topics. The workshops typically take place during the working group's regular meetings on Thursdays (see Events).

If there is enough interest, we are streaming the workshops online using https://meet.jit.si/ledum-wg-meetup. We are also trying to get our A/V streaming and editing skills to a level that allows for publishing the recordings of the workshops. Any help with such endeavor would be more than welcome.

Streaming Setup in Brmlab

The public laptop available in the social room, clearly labeled “Brmlab”, has some rudimentary setup for online streaming of Ledum Working Group Meetings. The online session can be setup as follows:

  1. Locate the aforementioned laptop.
  2. Find its power supply adapter.
  3. Put the laptop on a table near the pack of cables hanging down from the ceiling roughly in the middle of the room.
  4. Connect the power supply adapter to 230V socket and to the laptop.
  5. Power up the laptop by pressing the power button located just left of the delete key which is in the top right corner of the keyboard and double-check it is not running only on the battery.
  6. Connect a mouse to the laptop - it is really needed for any actual directing of the session.
  7. Go to the audio mixing table - by the time of this writing, it is located by the 3rd window pair counting from the entrance
  8. At the table, search for and pick up:
    • red/black USB device for capturing HDMI output
    • blue USB-A to USB-A USB 3.0 cable
    • (probably black) HDMI cable of sufficient length (2m should be OK)
  9. Get back to the laptop and connect the HDMI capture device to the remaining USB-A port of the laptop.
  10. Start the Chromium browser and load the meeting URL (see above).
  11. Grab the HDMI cable going from the projector just under the ceiling and connect it to the integrated HDMI port on the right hand side of the laptop (next to the power supply connector).
  12. Power up the projector using the “Optoma” remote clipped to the pack of cables slightly above the table. You need to press the red power button in the top left corner twice and the red light on the projector should change to blue.
  13. Ensure the system is configured to use the external projector as secondary / separate screen.
  14. Move the Chromium browser window to the secondary screen and put it in the full-screen mode. Beware - without Fn-Lock, the F11 key puts the laptop in the Airplane Mode.
  15. Start OBS Studio (it is installed).
  16. If it asks for the permission to share a screen window, check it is the Chromium browser window you have just opened and allow sharing.
  17. In the “Scene Collections” menu at the top of OBS Studio's window, check whether “LedumMeeting” is selected and select it if it is not.
  18. Select the “Default” scene in the lower left corner of the window.
  19. Ensure the laptop's internal camera located just above its display has its cap open.
  20. In the sources list right to the scene selection of the previous step, check and ensure:
    • The “JitsiWindow” source shares the Chromium browser window opened earlier.
    • The “SpeakerCamera” displays the image from the front camera facing the director of the session (that is typically you).
    • The “HDMICapture” properly sees whatever you connect to it (typically use another laptop to double-check).
  21. Now that everything is ready, click the “Start Virtual Camera” button in the lower right corner (fourth from the bottom). You may need to enter the password “brmbrm”.
  22. Go back to Chromium browser window and select the newly created “OBS Camera” as the primary video source for the Jitsi meeting.
  23. Go back to OBS Studio and select the “Intro” scene and you are ready to go.

Past Workshops

Planned

Design Topics

ISA Description

Warning: This part may change wildly at this stage.

Registers

Pointers

Tagging

Electronic Circuit Design

Integrated Circuit Design

Tooling

Miscellaneous

Things to read

Optimizations

- Compressed pointers: https://shipilev.net/jvm/anatomy-quarks/23-compressed-references/

- Read barriers pro concurent scavenger: https://blog.openj9.org/2019/03/25/concurrent-scavenge-garbage-collection-policy/ + HW support https://www.ibm.com/support/pages/pause-less-garbage-collection-java-ibm-z https://www.ibm.com/docs/en/zos/3.1.0?topic=ixg-ieagsf-guarded-storage-facility-services

- Chinual: https://tumbleweed.nu/r/lm-3/uv/chinual.html

- https://pqnelson.github.io/org-notes/comp-sci/lisp/machine/i/architecture.html

Current Progress

Tooling

As a proof-of-concept an assembly language compiler and IDE support was implemented for a very simple Harvard architecture 8-bit CPU. A graphical emulator for the same simple CPU was created as well. The aim of these tooling efforts is to provide a unified framework for creating custom instruction sets including their assemblers and emulators.

~~META: status = active &relation firstimage = :project:ledum:320px-ledum_palustre_bluehend.jpg ~~