Veryl is an open source programming language created in 2022 by Naoya Hatta.
#465on PLDB | 2Years Old |
git clone https://github.com/veryl-lang/veryl
Veryl: A Modern Hardware Description Language
// Hello world in Veryl
module ModuleA {
initial {
$display("Hello, world!");
}
}
Feature | Supported | Example | Token |
---|---|---|---|
Conditionals | ✓ | ||
Constants | ✓ | ||
Line Comments | ✓ | // A comment | // |
Print() Debugging | ✓ | $display("Hi"); | $display |
File Imports | ✓ | // file scope import import $sv::SvPackage::*; module ModuleA { import PackageA::*; import PackageA::paramA; } package PackageA { local paramA: u32 = 1; } | |
Directives | ✓ | #[test(test1)] embed (inline) sv{{{ module test1; initial begin assert (0) else $error("error"); end endmodule }}} | |
MultiLine Comments | ✓ | /* A comment */ | /* */ |
Comments | ✓ | // https://doc.veryl-lang.org/book/05_language_reference/02_lexical_structure.html // a comment | |
Strings | ✓ | "hello world" | " |
While Loops | X | ||
Booleans | X | ||
Type Inference | X | ||
Case Insensitive Identifiers | X | ||
Semantic Indentation | X | ||
Pattern Matching | X | ||
Operator Overloading | X |