enhancement to the align feature

I'd like to request an enhancement to the align feature for port declarations.

If I have a port declaration that looks like this:

  ctrl_master_read        : out   std_logic;
  ctrl_master_address     : out   std_logic_vector(31 downto 0);
  ctrl_master_readdata    : in    std_logic_vector(31 downto 0);
  ctrl_master_waitrequest : in    std_logic;
 
  exp_slave_read : in    std_logic;
  exp_slave_write : in std_logic;
  exp_slave_readdata : out std_logic_vector(31 downto 0);
  exp_slave_writedata : out std_logic_vector(31 downto 0);
  exp_slave_address : in    std_logic_vector(7 downto 0);

and use the sigasi align functionality I get this:
  ctrl_master_read        : out   std_logic;
  ctrl_master_address     : out   std_logic_vector(31 downto 0);
  ctrl_master_readdata    : in    std_logic_vector(31 downto 0);
  ctrl_master_waitrequest : in    std_logic;
 
  exp_slave_read          : in    std_logic;
  exp_slave_write         : in std_logic;
  exp_slave_readdata      : out std_logic_vector(31 downto 0);
  exp_slave_writedata     : out std_logic_vector(31 downto 0);
  exp_slave_address       : in    std_logic_vector(7 downto 0);

but what I really want is this:
  ctrl_master_read        : out   std_logic;
  ctrl_master_address     : out   std_logic_vector(31 downto 0);
  ctrl_master_readdata    : in    std_logic_vector(31 downto 0);
  ctrl_master_waitrequest : in    std_logic;
 
  exp_slave_read          : in    std_logic;
  exp_slave_write         : in    std_logic;
  exp_slave_readdata      : out   std_logic_vector(31 downto 0);
  exp_slave_writedata     : out   std_logic_vector(31 downto 0);
  exp_slave_address       : in    std_logic_vector(7 downto 0);

with all of the types aligned as well as it looks a bit more clean.

Hi Nathanael, We have a

Hi Nathanael,
We have a better aligner in the HDT 2.0 tech preview. The extra whitespace will be eliminated, so your code will look less messy. At this time, however, we do not align the data types:

  ctrl_master_read        : out std_logic;
  ctrl_master_address     : out std_logic_vector(31 downto 0);
  ctrl_master_readdata    : in std_logic_vector(31 downto 0);
  ctrl_master_waitrequest : in std_logic;
 
  exp_slave_read          : in std_logic;
  exp_slave_write         : in std_logic;
  exp_slave_readdata      : out std_logic_vector(31 downto 0);
  exp_slave_writedata     : out std_logic_vector(31 downto 0);
  exp_slave_address       : in std_logic_vector(7 downto 0);

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.