Functional-Bus-Description-Language / go-vfbdb

Versatile Functional Bus Description Language compiler back-end written in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vhdl: Rename types for proc

m-kru opened this issue · comments

commented

Currently the type with params has out in its name, the type with returns has in in its name. Use param and return instead.
Example:
Currently:

type foo_out_t is record
   p1 :  std_logic_vector(0 downto 0);
   p2 :  std_logic_vector(7 downto 0);
end record;

type foo_in_t is record
   r1 :  std_logic_vector(0 downto 0);
   r2 :  std_logic_vector(7 downto 0);
end record;

After the changes:

type foo_param_t is record
   p1 :  std_logic_vector(0 downto 0);
   p2 :  std_logic_vector(7 downto 0);
end record;

type foo_return_t is record
   r1 :  std_logic_vector(0 downto 0);
   r2 :  std_logic_vector(7 downto 0);
end record;
commented

This might not be a good idea, since the *_out_t also includes call and exitt signals.