Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of DSLX design parameterization based on proto files #1183

Merged
merged 2 commits into from
Mar 8, 2024

Commits on Feb 22, 2024

  1. build_rules: utilities: add proto_to_dslx rule

    Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
    lpawelcz committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    64b2fa9 View commit details
    Browse the repository at this point in the history
  2. examples: Add parameterized design example

    This example showcases the usage of proto_to_dslx tool in DSLX design
    parameterization.
    It defines a protobuf message containing design parameters:
    
    * input width,
    * output width
    
    A textproto file with a variant of the design is provided.
    Textproto file can be converted to DSLX file which is then imported
    by top-level design in order to use the parameters.
    
    The design itself has 2 inputs and one output. The widths of those are
    controlled by parameters.
    
    Verilog file for the variant can be generated with:
    
    ```
    bazel build //xls/examples/parameterized:design_verilog
    ```
    
    Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
    lpawelcz committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    3dec337 View commit details
    Browse the repository at this point in the history