M
M
maxshkiv2017-11-15 23:33:00
assembler
maxshkiv, 2017-11-15 23:33:00

How to write bubble sort using dp32 processor codes?

I found an example of sorting, but it's inserts - I need a bubble
X"0708_0808",
X"100A_0805",
X"100B_0864",
X"000C_0A0B",
X"1007_0805",
X"3107_0B00",
X"1007_0807",
X"3107_0B01 ",
X"1007_0802",
X"3107_0B02",
X"1007_0801",
X"3107_0B03",
X"1007_0800",
X"3107_0B04",
X"1000_0B00",
X"1001_0000",
X"1002_0000",
X"3006_0200 ",
X"3005_0100",
X"0107_0506",
X"500B_0001",
X"1001_0200",
X"0107_020C",
X"500A_00F8",
X"3003_0000",
X"3004_0100",
X"3104_0000",
X"3103_0100",
X"1000_0001",
X"0107_000C",
X"500A_00EF",
X"0000_0000", others =>X"0000_0000");
The code should be something like this, please help me where to get these codes, maybe there is some guide, thanks in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-11-16
@maxshkiv

Let's figure it out.
VHDL is a Hardware Description Language. With it, you can describe how the electrical circuit will work. It looks like this .
The machine code of a processor is the binary program for that processor. Bytes of machine code can be placed in memory and executed by the target processor.
A separate word about dp32. What is dp32?
Now try to start by explaining to us what exactly you want to write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question