jubin007
Newbie level 4
- Joined
- Mar 10, 2015
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 60
I am new in verilog but am getting used to it. My problem is how to store amplitude values of the sine wave. i am using a 14 bit resolution which means i have 2^14 no of values between 0 to 360 / 90 (doesn't matter) of sine. now the address will be linear but the corresponding sine amplitudes are nonlinear and theu have values like 0.00000123456. how to store these values.
i know the syntax for binary version but i need amplitudes here.
but that isn't gonna work here.
please help. hope the problem is understood
i know the syntax for binary version but i need amplitudes here.
Code:
reg[13:0]mem [0:16384] ;
assign mem[0000] = 14'b00000000000011;
please help. hope the problem is understood