Thriving Thriving C++ C+ SY
↑ 66
lyra hankhsu1996/lyra

A SystemVerilog compiler and simulator. It builds a design into a native program and runs it.

HEALTH 84 / Healthy
// solo builder// hidden gem compilersimulationsimulatorsystemverilogverilogedahdlllvmverification

// momentum

+2β˜… Β· 92 issues Β· 8w

featured in

// why it's here

  • Active: last commit 1 day ago
  • Built almost entirely by one person
  • Health 84/100 with only 7 stars

// how to help

// readme

Lyra

Lyra is a SystemVerilog compiler and simulator. It builds a design into a native program and runs it. It’s built on slang and LLVM.

Building Lyra

Lyra is built from source with Bazel, through bazelisk. The build fetches the compiler and the C++ library it needs, so nothing else has to be installed first.

git clone https://github.com/hankhsu1996/lyra
cd lyra
bazel build //:lyra

The command is then bazel-bin/lyra; the examples below call it lyra. It runs on x86-64 Linux, and CONTRIBUTING.md says which Linux and which C++ compiler release it needs.

Your first simulation

Save this as counter.sv:

module counter_tb;
  logic clk = 0;
  logic [3:0] count = 0;

  always #5 clk = ~clk;
  always @(posedge clk) count <= count + 1;

  initial begin
    repeat (3) begin
      @(negedge clk);
      $display("%0t: count = %0d", $time, count);
    end
    $finish;
  end
endmodule

Run it:

Read the full README on GitHub β†—

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity β€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated