mirror of https://github.com/YosysHQ/yosys.git
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
|
@ -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
|
|
@ -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 New Issue