Commit 80154feb by Zachary Snow

logic conversion notices procedural assignments in tasks and functions

parent 24071d74
...@@ -171,6 +171,8 @@ regIdents :: ModuleItem -> Writer Idents () ...@@ -171,6 +171,8 @@ regIdents :: ModuleItem -> Writer Idents ()
regIdents (item @ AlwaysC{}) = regIdents' item regIdents (item @ AlwaysC{}) = regIdents' item
regIdents (item @ Initial{}) = regIdents' item regIdents (item @ Initial{}) = regIdents' item
regIdents (item @ Final{}) = regIdents' item regIdents (item @ Final{}) = regIdents' item
regIdents (item @ (MIPackageItem Task {})) = regIdents' item
regIdents (item @ (MIPackageItem Function{})) = regIdents' item
regIdents _ = return () regIdents _ = return ()
regIdents' :: ModuleItem -> Writer Idents () regIdents' :: ModuleItem -> Writer Idents ()
......
module top;
logic x, y, z;
task t;
x = 1;
endtask
function f;
y = 1;
f = 0;
endfunction
assign z = 0;
initial begin
t;
$display("%b %b %b %b", x, y, z, f());
$display("%b %b %b %b", x, y, z, f());
end
endmodule
module top;
reg x, y;
wire z;
task t;
x = 1;
endtask
function f;
input x;
begin
y = 1;
f = 0;
end
endfunction
assign z = 0;
initial begin
t;
$display("%b %b %b %b", x, y, z, f(0));
$display("%b %b %b %b", x, y, z, f(0));
end
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment