Support of the .vh file extension for SystemVerilog

This commit is contained in:
Paul Chaignon
2014-03-04 10:44:23 +01:00
parent 4ec878ba0d
commit cb9bef43a5
2 changed files with 9 additions and 0 deletions

View File

@@ -1660,6 +1660,7 @@ SystemVerilog:
primary_extension: .sv
extensions:
- .svh
- .vh
TOML:
type: data

View File

@@ -0,0 +1,8 @@
function integer log2;
input integer x;
begin
x = x-1;
for (log2 = 0; x > 0; log2 = log2 + 1)
x = x >> 1;
end
endfunction