Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Veryl

< >

Veryl is an open source programming language created in 2022 by Naoya Hatta.

#444on PLDB 2Years Old
Download source code:
git clone https://github.com/veryl-lang/veryl

Veryl: A Modern Hardware Description Language


// Hello world in Veryl module ModuleA { initial { $display("Hello, world!"); } }

Language features

Feature Supported Token Example
Conditionals โœ“
Constants โœ“
Line Comments โœ“ //
// A comment
Print() Debugging โœ“ $display
$display("Hi");
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

View source

- Build the next great programming language ยท About ยท Resources ยท Acknowledgements ยท Part of the World Wide Scroll