lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.55k stars 761 forks source link

How to run custom cpp program on opentitan? #23188

Open yaagna opened 5 months ago

yaagna commented 5 months ago

Description

Give a description of the problem, listing similar issues and if able:

yaagna commented 5 months ago

I have a custom c++ model of a 2 party protocol I want to test using opentitan framework. Dopes anyone know how to test it?

So, basically my model tries to simulate Multiparty Computation between two parties. Let's say Alice and Bob. So, Alice will encrypt her data and send to Bob and bob decrypts the data performs the computation (on his data as well as data send by Alice) and then gives the final result. This is written as cpp simulation model. Will I need to rewrite the cpp model such that it defines which signal will come from which module of opentitan Soc?