mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Added tests for Verilog frontent for attributes on parameters and localparams
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
This commit is contained in:
parent
ce4a0954bc
commit
1f52332b8d
11
tests/simple/localparam_attr.v
Normal file
11
tests/simple/localparam_attr.v
Normal file
|
@ -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
|
11
tests/simple/param_attr.v
Normal file
11
tests/simple/param_attr.v
Normal file
|
@ -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
|
Loading…
Reference in a new issue