Reversing bits

Guest #4241201
Ich habe eine hexadecimal addresse ABCD1234.Wie kann ich es reverse 
bekommen.Configuration website von ethernet zeigt 0x3412CDAB(Die werte 
von diese hexadecimal addresse wird von miso auf signal tap 
gelesen)aber,webseite muss genauso wie ABCD1234 zeigen.Wie kann ich es 
machen(Besser wäre wenn jemanden auf englisch erklärt)
#4241314
You generate a website with VHDL ?
Maybe give some further explanation how the data is transfered from the 
SPI-Interface (judging from the signal-name miso) to the website...
Guest #4241329
i dont generate website with vhdl.Instead i have a embedded system board 
with FPGA in it to which transfer takes place.However,there is a website 
of the entire board(ethernet)(It has even microcontroller and like i 
said,FPGA as well)...From the website FPGA is triggered and we get the 
hexadecimal address
Guest #4241349
Max D. schrieb:
> What programming language ?
> Genral idea: Write into array in one direction, read from it in the
> other direction....

;-) das ist eine gute idee!
auf sowas einfaches bin ich noch gar nicht gekommen ;-)
und werde es zukünftig so machen bei MSB / LSB

txs
..
#4241362
.. schrieb:
> Max D. schrieb:
>> What programming language ?
>> Genral idea: Write into array in one direction, read from it in the
>> other direction....
>
> ;-) das ist eine gute idee!
> auf sowas einfaches bin ich noch gar nicht gekommen ;-)
> und werde es zukünftig so machen bei MSB / LSB
>
> txs
> ..

Danke für die Lorbeeren :)
Is halt der übliche deal Speicher gegen Laufzeit

puka1012 schrieb:
> (It has even microcontroller and like i
> said,FPGA as well)

I have very little knowledge of VHDL (and programmable logic in 
general), therefore my approach would be to do the adjustment inside the 
µC on the Board. The way the data looks suggests to me, that the 
endianess of the two SPI-Devices doesn't match...
Guest #4241713
1
   function swapbytes(din:std_logic_vector(31 downto 0)) return std_logic_vector is 
2
   begin
3
      return din(7 downto 0) & din(15 downto 8) & din(23 downto 16) & din(31 downto 24);
4
   end function;
#4242050
Max D. schrieb:
> Is halt der übliche deal Speicher gegen Laufzeit

Blödsinn. Der Swap kostet Dich rein gar nichts. Die Drähte zwischen 
Quelle (dort wo die Adresse herkommt) und Senke (dort wo die Adresse 
benötigt wird) liegen einfach anders...
Moderator (Company: Titel) #4242307
I wrote "written" instead of "spoken", but my intention should be fairly 
clear:
You can reside in any part of the world and speak any language. But 
here (mikrocontroller.net) you should write German and there 
(embdev.net) you should write English...

Reply

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.