moore 0.12.0

A compiler for hardware description languages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: moore %s -e foo --format llhd

module foo (output int x);
    initial x = 42;
endmodule

// CHECK: proc %foo.initial.15.0 () -> (i32$ %x) {
// CHECK: 0:
// CHECK:     %1 = const i32 42
// CHECK:     %2 = const time 0s 1e
// CHECK:     drv i32$ %x, %1, %2
// CHECK:     halt
// CHECK: }
// CHECK:
// CHECK: entity @foo () -> (i32$ %x) {
// CHECK:     inst %foo.initial.15.0 () -> (i32$ %x)
// CHECK: }