# VERILOG082: "output", "inout" and "ref" directions should not be used in function arguments ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Intentionality | Logical20minsynthesis, vscode, lowrisc, linter
``` ## Description ```{raw} html

output, inout and ref directions should not be used in function arguments in synthesizable code.

Articles & blog posts

Noncompliant code example

function automatic logic [2:0] fly(
  logic [2:0] a,
  output logic [2:0] b // Noncompliant: 'b' argument has 'output' direction
);
  ...
endfunction

Compliant solution

function automatic logic [2:0] fly(
  logic [2:0] a,
  logic [2:0] b
);
  ...
endfunction
``` ## Parameters No parameters. ```{raw} html ```