yupina-chan
Member level 2
- Joined
- Nov 27, 2013
- Messages
- 51
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 8
- Activity points
- 397
hi. i am trying to make my own histogram block using a dual port ram. my block looks as below. the pixel value will be used as the address for both ports and only one port will be enabled at once (en_b from inverted enable input). port a will be exclusive for reading while port b will be for writing(updating the count). data_a is always '0' because it will not be used as input to any port. i want to read first the value found in the first address inputted (can i do 'read' first? or i should write to it first?) and then add one to it and write it to addr_b to update the count. i made my own code but i can't get it to work (also included). please i need help in this.