Get the latest tech news

Click-V: A RISC-V emulator built with ClickHouse SQL


A RISC-V emulator built with ClickHouse SQL. Contribute to SpencerTorres/Click-V development by creating an account on GitHub.

This command will trigger a large set of branched materialized views and Null tables that filter out the program's instructions to simulate reading/writing from registers and memory. Set up a ClickHouse v24 image Set up a Redis-like server for registers/memory access (plain redis works fine, dragonfly was slower, there's also a built-in server in/system/mem) Run all SQL statements in/sql/click-v.sql(confirm your redis host is correct, right now it points to host.docker.internal:6379) Load your own RISC-V 32i program into INSERT INTO clickv.load_program (hex) VALUES ('FFFFFFFF')(make sure your hex instructions are in the correct direction) Either clock the system via INSERT INTO clickv.clock (_) VALUES (), or use the auto-clock in/system/clock ecall is implemented same as the other instructions, but due to the expensive nature of these calls, they are hidden behind another layer of materialized views to prevent unnecessary sub-queries from being triggered.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of v emulator

v emulator

Photo of clickhouse sql

clickhouse sql

Photo of click-v

click-v

Related news:

News photo

RISC-V Emulator for Sophgo SG2000 SoC (Pine64 Oz64 / Milk-V Duo S)