On 22 July, 12:20, "BarNash" <(EMail Removed)> wrote:
> "As for the data from the ADC, it will all depend on what ADC it is and
> Â* Â*whatever it written in the data sheet about what values it outputs."
>
> My question is really Â*:What format the ADC output should Â*have Â*
> Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*since the multiplier treats it as signed ?
>
> Thanks
> Bar Nash
>
> "Tricky" <(EMail Removed)> ×›×ª×‘ ×‘×”×•×“×¢×”:(EMail Removed)...
>
> > On 22 July, 06:16, "BarNash" <(EMail Removed)> wrote:
> >> Hi all
>
> >> I am trying to learn a FIR vhdl model and I want to ask the following :
>
> >> 1> The MULTIPLYER architecture is based on the
>
> >> RESULT <= signed(input) * signed(coefficient)
>
> >> What is the signed function needed for ?
>
> >> 2> The data from the ADC how is it to be formed ? The leftmost bit is sign
> >> bit ?
>
> >> Thanks
> >> Bar Nash
>
> > VHDL is strongly typed, so the signed function you see is just a
> > conversion function, probably from std_logic_vector, into a signed
> > type. It wont actually change any of the data. It also implies that
> > RESULT is also of signed type. Typing gives meaning to words  a
> > std_logic_vector is just a collection of bits  it could be a bus of
> > control bits or a data word. The whole point of the signed/unsigned
> > types is it gives meaning to the bus in the code, making it easier for
> > the engineer to understand whats going on.
>
> > As for the data from the ADC, it will all depend on what ADC it is and
> > whatever it written in the data sheet about what values it outputs.
>
>
hardware multipliers dont really care  they can do unsigned and
signed arithmatic. ADC choice is down to whatever you want it to be.
If the output is unsigned and you really need signed, you can just put
a '0' on the front of it and make it a signed number.
