diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-03-07 22:44:37 -0800 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-03-07 22:44:37 -0800 |
commit | a330c6836318d43d52cda68959f2b86c2b2ede9c (patch) | |
tree | bc46a4b615413b48e7c4752ce46359c5e900373c /tests/simple | |
parent | 350dfd3745ec2efa92a601d3bab7712fd9bec07c (diff) | |
download | yosys-a330c6836318d43d52cda68959f2b86c2b2ede9c.tar.gz yosys-a330c6836318d43d52cda68959f2b86c2b2ede9c.tar.bz2 yosys-a330c6836318d43d52cda68959f2b86c2b2ede9c.zip |
Fix handling of task output ports in clocked always blocks, fixes #857
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/task_func.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/simple/task_func.v b/tests/simple/task_func.v index fa50c1d5c..f6e902f63 100644 --- a/tests/simple/task_func.v +++ b/tests/simple/task_func.v @@ -120,3 +120,22 @@ module task_func_test04(input [7:0] in, output [7:0] out1, out2, out3, out4); assign out3 = test3(in); assign out4 = test4(in); endmodule + +// ------------------------------------------------------------------- + +// https://github.com/YosysHQ/yosys/issues/857 +module task_func_test05(data_in,data_out,clk); + output reg data_out; + input data_in; + input clk; + + task myTask; + output out; + input in; + out = in; + endtask + + always @(posedge clk) begin + myTask(data_out,data_in); + end +endmodule |