10 lines
132 B
Verilog
10 lines
132 B
Verilog
module simple_function();
|
|
|
|
function myfunction;
|
|
input a, b, c, d;
|
|
begin
|
|
myfunction = ((a+b) + (c-d));
|
|
end
|
|
endfunction
|
|
|
|
endmodule
|