Skip to main content
Blog

Enabling Secure Open Source ML Products with Open Se Cura

By November 30, 2023December 1st, 2023No Comments

At the recent RISC-V Summit in Santa Clara, Antmicro participated in Google’s announcement of the open source release of project Open Se Cura. The announcement crowns a many-year collaboration towards developing a secure, heterogeneous multi-core ML solution based on RISC-V that serves as a template for subsequent commercial adaptations that can build on a solid open source foundation. The release includes both open source software, hardware, simulation-based co-development workflow using Renode that Antmicro helped bring to life, as well as open source RTL, bridging the gap between a great concept to its practical implementation.

The goal of Open Se Cura is to provide an open source framework to accelerate the development of secure, scalable, transparent and efficient AI systems. The project was previously known as Project Sparrow, and in previous years Antmicro  presented various topics about it on several occasions, demonstrating subsequent developments in the methodology and workflow that powers Open Se Cura in anticipation of a full open source release.

Open Se Cura illustration

Open source AI, from the hardware up

Google’s ambition in the project, convergent with Antmicro’s mission to enable complete vertical integration using open source, is to evolve a set of open-source design tools and IP libraries that will accelerate the development of full-stack systems with ML workloads through co-design and development. This would enable system designs to center around security, efficiency, and scalability, empowering the next generation of AI experiences.

Open source has been central to the recent AI advancements and is a crucial base for safe and trustworthy AI applications. However, developments in the hardware space – and especially the open source flavors thereof – lag behind machine learning models and software development, which hinders collaboration and practical deployment of secure and efficient full-stack systems. The demand for secure, local, low-power AI still outpaces the supply which typically relies on a fragmented ecosystem of very vendor-specific solutions.

Antmicro has been working to alleviate this with its open source developments including the Kenning edge AI optimization deployment library, but Open Se Cura, including an open source reference silicon design that can be integrated into products following a Renode-powered co-design methodology, takes this to a new level. Antmicro had already enabled the support for the Open Se Cura ML accelerator in Kenning via Renode earlier this year, and are enthusiastic about the upcoming capability to deploy ML models on real, open source ML hardware while helping to  implement the RTL and accompanying methodology in real chips and products.

Collaboration and Antmicro’s involvement in providing Renode for full-system ML co-development

Open Se Cura is a collaborative project which besides Antmicro involves lowRISC, VeriSilicon and multiple academic partners, such as the University of Cambridge  and the University of Michigan which have come on board to help bring Open Se Cura to new use cases and explore its incredible customization potential.

Antmicro’s role in the project was primarily focused on enabling the simulation-driven co-development methodology underlying Open Se Cura development with the Renode simulation framework.

As part of the collaboration, Renode was expanded with broad support for OpenTitan open source silicon Root of Trust, covering the most important parts of the SoC, including such subsystems as OpenTitan Big Number Accelerator, cryptographic infrastructure with RISC-V Vector extension and a range of accelerators, lifecycle management, entropy distribution features and communication interfaces. Thoroughly tested against OpenTitan extensive smoke tests suite, this support became the basis of the Se Cura Continuous Integration and testing system, providing developers with more confidence and reduced iteration time of their work.

With the great introspection capabilities of Renode, the Open Se Cura team was able to benefit from improved execution tracing features for in-depth analysis of their executed software. Thanks to detailed reporting features, they could fine-tune their Machine Learning software and toolchains to fully use the potential of the platform. Recently, the quest to provide comprehensive information to the hardware and software teams developing ML solutions based on Open Se Cura led us to developing an integration with Google’s Trace Based Model which can be used to measure performance on a more detailed level, based on real microarchitecture implementation details.

Renode’s ability to run various software payloads as part of a heterogeneous multi-core and multi-node systems allows users – both current and future – to develop their secure ML software end-to-end, including the complete boot flow and inter-core communication, as well as data ingestion and output via flexible simulation of sensors and actuators etc. which will facilitate practical implementation in real AI scenarios.

Build complete ML systems with Open Se Cura

A big part of Antmicro’s zest for Open Se Cura lies in the core competence of the company: on a day-to-day basis, Antmicro helps build AI-focused products. With the open source release of the complete flow and RTL, Antmicro can help companies embed Open Se Cura and its derivatives into ML focused products, just like it’s doing today with proprietary ML silicon – but with more transparency and control.

Antmicro offers a wide range of services including integration of Open Se Cura into custom SoCs, simulation-first co-development and testing, BSP & software development for chips including Open Se Cura, developing edge ML boards and products with custom hardware designs based on the company’s open source flow and hardware component database.

On top of those hardware-centric scenarios, Antmicro also supports customers with open source tooling for fast-paced RISC-V-based ML ASIC development and integration, AI application development including model training and optimization with Kenning and integrating these solutions into secure, real-world devices by providing custom OTA and fleet management systems based on open source frameworks developed by the company.

To find out more about Open Se Cura Project, you can watch a presentation by Google, Antmicro and VeriSilicon with a technical deep dive during the CHIPS Alliance Technology Update that covered a variety of RISC-V related topics. If you want to learn more about how Antmicro can help accelerate your AI system design, reach out at contact@antmicro.com.

Stay Connected With RISC-V

We send occasional news about RISC-V technical progress, news, and events.