Skip to content

More range whitespace rules #1443

@maltaisn

Description

@maltaisn

There doesn't seem to be any rules to specify the number of spaces in these cases related to ranges:

library ieee;
  use ieee.std_logic_1164.all;

entity b is
  port (
    c : in    std_logic_vector(   7 downto      0)   -- 1, 2
  );
end entity b;

architecture a of b is

  type my_array is array        (natural     range     <>)   of      integer;    -- 3, 4, 5

  type my_array2 is array        (natural     range     0      to   7)   of      std_logic_vector(   7   downto     0);    -- 1, 2, 3, 4, 5

begin

end architecture a;
  1. In range specification, between starting parenthesis and first bound
  2. In range specification, between range type keyword (to/downto) and second bound
  3. In range definition, between index type and range keyword
  4. In range definition, between range keyword and its definition
  5. In array definition, between array keyword and range definition.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions