Skip to content

Commit 9287c8e

Browse files
committed
quest 32: Fix using directly range limited std_ulogic in for ... generate-statement, as 'range-attribute can't be used for unconstrained types
1 parent 1ed3f01 commit 9287c8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ip/32_Carry_Select_Adder/carry_select_adder.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ begin
5858
stage_block_width_b(stage_idx) <= b((stage_idx + 1) * STAGE_BLOCK_WIDTH - 1 downto stage_idx * STAGE_BLOCK_WIDTH);
5959

6060
-- For stage 0, use cin as carry in
61-
carry_in_blocks: for carry_bit in unsigned_carry_bit_array'range generate
61+
carry_in_blocks: for carry_bit in std_ulogic range '0' to '1' generate
6262
ripple_carry_adder_block: entity work.ripple_carry_adder
6363
generic map (
6464
DATA_WIDTH => STAGE_BLOCK_WIDTH
@@ -96,7 +96,7 @@ begin
9696
stage_remainder_width_a <= a(a'high downto a'high - STAGE_REMAINDER_WIDTH + 1);
9797
stage_remainder_width_b <= b(b'high downto b'high - STAGE_REMAINDER_WIDTH + 1);
9898

99-
carry_in_stages: for carry_bit in unsigned_carry_bit_array'range generate
99+
carry_in_stages: for carry_bit in std_ulogic range '0' to '1' generate
100100
ripple_carry_adder_inst: entity work.ripple_carry_adder
101101
generic map (
102102
DATA_WIDTH => STAGE_REMAINDER_WIDTH

0 commit comments

Comments
 (0)