summaryrefslogtreecommitdiff
path: root/tests/asicworld/code_verilog_tutorial_simple_function.v
blob: 5818a1d4a1a9bc0f95249c66e8abe5d8c9fd95e3 (plain)
1
2
3
4
5
6
7
8
9
10
module simple_function();

function  myfunction;
input a, b, c, d;
begin
  myfunction = ((a+b) + (c-d));
end
endfunction

endmodule