Error adding std_logic_vectors

前端 未结 4 1284
难免孤独
难免孤独 2020-12-05 05:12

I wanna have a simple module that adds two std_logic_vectors. However, when using the code below with the + operator it does not synthesize.

library IEE         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 06:04

    Good advice from @Aurelien to use numeric_std.

    Bear in mind that adding two 32 bit values can result in a 33 bit value and decide how you want to handle the overflow.

提交回复
热议问题