Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
1
ERROR: Unable to parse source file : /home/adieumeg/Documents/Repositories/lustrec-tests/vhdl_json/vhdl_files/ghdl/ghdl/testsuite/vests/vhdl-93/ashenden/compliant/bv_arithmetic_body.vhd
2
ERROR: Parse error at line 143 column 16:
3

    
4
133:   function "+" ( bv1, bv2 : in bit_vector ) return bit_vector is
5
134: 
6
135:     alias op1 : bit_vector(bv1'length - 1 downto 0) is bv1;
7
136:     alias op2 : bit_vector(bv2'length - 1 downto 0) is bv2;  
8
137:     variable result : bit_vector(bv1'length - 1 downto 0);
9
138:     variable carry_in : bit;
10
139:     variable carry_out : bit := '0';
11
140: 
12
141:   begin
13
142:     if bv1'length /= bv2'length then
14
143:       report """+"": operands of different lengths"
15
                    ^
16
144:         severity failure;
17
145:     else
18
146:       for index in result'reverse_range loop
19
147:         carry_in := carry_out;  -- of previous bit
20
148:         result(index) := op1(index) xor op2(index) xor carry_in;
21
149:         carry_out := (op1(index) and op2(index))
22
150:                      or (carry_in and (op1(index) xor op2(index)));
23
151:       end loop;
24
152:     end if;
25
153:     return result;
26

    
27
WARN: Missing blame information for the following files:
28
WARN:   * bv_arithmetic_body.vhd
29
WARN: This may lead to missing/broken features in SonarQube
(26-26/510)