Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.
/ llhd-sim Public archive

The LLHD reference simulator.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

fabianschuiki/llhd-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llhd-sim

Moved: llhd-sim is now part of the llhd repository and crate. This repository will no longer be updated.


Build Status Crates.io

This is the reference simulator for llhd, striving to be complete but as minimal as possible. Its goal is to serve as a starting point for developing more sophisticated simulators for hardware written in llhd. As a secondary goal it acts as an application example of llhd.

Usage

Installation

You need a working Rust installation. Use cargo to install llhd-sim:

cargo install llhd-sim

Example

Given the following input file:

// foo.llhd
proc @foo () (i32$ %out) {
%entry:
    drv %out 0 1ns
    drv %out 42 2ns
    %0 = add i32 9000 1
    drv %out %0 3ns
    halt
}

Use llhd-sim to simulate the described hardware and produce a VCD file:

llhd-sim foo.llhd
gtkwave /tmp/output.vcd

About

The LLHD reference simulator.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages