Commit ce271cd4 authored by yoogx's avatar yoogx

* Check feature is an event port before checking port size

parent 132b3666
......@@ -3541,7 +3541,7 @@ package body Ocarina.Backends.C_Common.Mapping is
function Map_Queue_Size (Port : Node_Id) return Node_Id is
Queue_Size : Unsigned_Long_Long := 1;
begin
if Get_Queue_Size (Port) /= -1 then
if Is_Event (Port) and then Get_Queue_Size (Port) /= -1 then
Queue_Size := Unsigned_Long_Long (Get_Queue_Size (Port));
end if;
......
......@@ -1902,6 +1902,7 @@ package body Ocarina.Backends.PO_HI_C.Deployment is
F_N : constant Node_Id := AAN.First_Node (F_L);
begin
if Present (F_N) and then
Is_Event (Item (F_N)) and then
Get_Queue_Size (Item (F_N)) /= -1
then
Append_Node_To_List
......
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