aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/sr2737/testit.vhdl
blob: d1e9cda6337a6bb96ffca6ebf7ff51cfd170aea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
entity testit is

end entity;

architecture behave of testit is 

  subtype shiftrange is integer range -8 to 8;
  signal input: bit_vector (1 to 5) := "11100";
  signal ror_val: bit_vector (1 to 5);
  signal rol_val: bit_vector (1 to 5);
  signal shft: shiftrange;

begin

process
begin
    for i in shiftrange loop 
        ror_val  <= input ror i;
        rol_val  <= input rol i;
        shft <= i;
        wait for 20 ns; -- a convenient length of time
    end loop;
    wait;
    
end process;

end architecture;