VERILOG101: Function return value should have an explicit storage type

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM-MEDIUMIntentionality | Clear10minsynthesis, vscode, linter, lowrisc

Description

Articles & blog posts

Noncompliant code example

function automatic fly(); // Noncompliant: No return type
endfunction

function automatic signed [2:0] dream(); // Noncompliant: Implicit return type
endfunction

Compliant solution

function automatic logic fly(); // Compliant
endfunction

function automatic logic [2:0] dream(); // Compliant
endfunction

Function return value should have an explicit storage type.

This rule applies on synthesizable code only.

Parameters

No parameters.