manasic
Junior Member level 1
- Joined
- Nov 2, 2013
- Messages
- 15
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 154
Hello all;
I am writing a code for FIFO buffer and come across a stage in which I need to increment my read and write pointer. The read and write pointer are std_logic_vector. So incrementing it by 1; requires a hell lot of type cast conversion. It looks something like this:
I am very newbie to VHDL, can anyone suggest a better and efficient way to do this.
Thanks and regards;
Manasi.:roll:
I am writing a code for FIFO buffer and come across a stage in which I need to increment my read and write pointer. The read and write pointer are std_logic_vector. So incrementing it by 1; requires a hell lot of type cast conversion. It looks something like this:
Code VHDL - [expand] 1 std_logic_vector(to_unsigned(((to_integer(unsigned(weptr))) + 1),4))
I am very newbie to VHDL, can anyone suggest a better and efficient way to do this.
Thanks and regards;
Manasi.:roll:
Last edited by a moderator: