diff options
author | Maciej Kurc <mkurc@antmicro.com> | 2019-05-16 12:53:43 +0200 |
---|---|---|
committer | Maciej Kurc <mkurc@antmicro.com> | 2019-05-16 12:53:43 +0200 |
commit | 1f52332b8d4621d6c5ab1447e82b6e2e53600e52 (patch) | |
tree | 9977477bebc1105ca0cf2b82c79e092faa66d832 /tests/simple | |
parent | ce4a0954bc896eedfc2d87e2c9d2b40f42a101db (diff) | |
download | yosys-1f52332b8d4621d6c5ab1447e82b6e2e53600e52.tar.gz yosys-1f52332b8d4621d6c5ab1447e82b6e2e53600e52.tar.bz2 yosys-1f52332b8d4621d6c5ab1447e82b6e2e53600e52.zip |
Added tests for Verilog frontent for attributes on parameters and localparams
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/localparam_attr.v | 11 | ||||
-rw-r--r-- | tests/simple/param_attr.v | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/simple/localparam_attr.v b/tests/simple/localparam_attr.v new file mode 100644 index 000000000..2ef76c71c --- /dev/null +++ b/tests/simple/localparam_attr.v @@ -0,0 +1,11 @@ +module uut_localparam_attr (I, O); + +(* LOCALPARAM_ATTRIBUTE = "attribute_content" *) +localparam WIDTH = 1; + +input wire [WIDTH-1:0] I; +output wire [WIDTH-1:0] O; + +assign O = I; + +endmodule diff --git a/tests/simple/param_attr.v b/tests/simple/param_attr.v new file mode 100644 index 000000000..34d63a34e --- /dev/null +++ b/tests/simple/param_attr.v @@ -0,0 +1,11 @@ +module uut_param_attr (I, O); + +(* PARAMETER_ATTRIBUTE = "attribute_content" *) +parameter WIDTH = 1; + +input wire [WIDTH-1:0] I; +output wire [WIDTH-1:0] O; + +assign O = I; + +endmodule |