yosys/tests/asicworld/code_verilog_tutorial_simpl...

11 lines
132 B
Verilog

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