yosys/tests/asicworld/code_verilog_tutorial_task_...

13 lines
143 B
Verilog
Raw Normal View History

2013-01-05 04:13:26 -06:00
module task_global();
reg [7:0] temp_out;
reg [7:0] temp_in;
task convert;
begin
temp_out = (9/5) *( temp_in + 32);
end
endtask
endmodule