Search found 39 matches

by Akari
June 8th, 2014, 7:29 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing [56k warning]

While I busy with RLE algorythm description i want to tell you one error i found in your RLE decoding: rl_decode_block(blk,src,qt) for i=0 to 63, blk[i]=0, next i ;initially zerofill all entries (for skip) @@skip: n=[src], src=src+2, k=0 ;get first entry, init dest addr k=0 if n=FE00h then @@skip ;i...
by Akari
June 3rd, 2014, 6:02 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing [56k warning]

RLE finished.

Image
by Akari
May 21st, 2014, 11:36 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing [56k warning]

nocash wrote:That's easy: It looks like zagzig:
for i=0 to 63, zagzig[zigzag]=i, next i


Ow I got it =)
I never see that there are zagzig in function in your documents. I always read it as zigzag =)
Thanks.
Now I have only one question, but this is for futher exploration. :geek:
by Akari
May 21st, 2014, 7:14 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing [56k warning]

Just finish reversing RLE address counter. This is counter that sets up addres for store result of RLE decoding. It must be in zigzag order, but real result are: 00 01 08 10 09 02 03 0a 11 18 20 19 12 0b 04 05 0c 13 1a 21 28 30 29 22 1b 14 0d 06 07 0e 15 1c 23 2a 31 38 39 32 2b 24 1d 16 0f 17 1e 25 ...
by Akari
May 7th, 2014, 11:48 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

RLE control progress: found 2 counters: 1) first is downcounter which takes number of empty RLE values (LEN in no$psx docs) and count them down to 0. it generates 3 signals: - current cunter value not zero - input LEN value not zero - counter finish counting (current value zero but start value was n...
by Akari
April 29th, 2014, 1:56 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Cool! Last sceme do clamping from -0x7FF to +0x7FF (result is signed 12bit) and one more strange operation. It round result to closest to zero even number (except -1). Whoops that's odd. And that might be why my software tests lead me to thinking that RLE output would be only 11bit wide, not 12bit....
by Akari
April 29th, 2014, 12:53 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Main RLE datapath is finished. Now all data went from beginning (unit04) to the end (unit05). Only different controls left until all RLE will be reversed. http://forum.emu-russia.net/download/file.php?mode=view&id=974 http://forum.emu-russia.net/download/file.php?mode=view&id=976 Last sceme ...
by Akari
April 24th, 2014, 12:33 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

New sceme succesfully simulated. This is inverted sum again, but this time for 16 bits.
Inputs are new value and previous sum result right shifted by 2.

How this is used we see a bit later when I reverse control logic.

Image
by Akari
April 19th, 2014, 4:51 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

10 days and 200 cells later I almost finished new big calcilation block. It 3 times bigger than previous one and works with inverted values too. I still don't know calculation result (I think it will be sum as well). Next goal is to finish all inputs and outputs from this sceme and simulate it in lo...
by Akari
April 9th, 2014, 8:28 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Riddle of previouse sceme solved! That was usual inverted adder. It adds two number but both numbers and result are inverted. That's why creators of chip used custom logic instead of usual Full Adders (thay are used in IDCT multiplication). By the way I moved forward and traced a bit of control logi...
by Akari
April 5th, 2014, 11:28 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

I spent whole week with RLE calculations I met. This sceme just add one 11 bit value to another 11 bit value and add one bit optionally. First value are shifted by 1. One additional bit is shifted two. Value 1 = A >> 1 Value 2 = B Carry = C >> 1 So less significant bit of value 2 just go to result w...
by Akari
April 1st, 2014, 1:46 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

i finished basic data lined and start trace RLE calculation logic. It looks like a lot of logic elements merges in giant spiderweb. :geek: I don't understand the pattern yet. http://forum.emu-russia.net/download/file.php?mode=view&id=956 http://forum.emu-russia.net/download/file.php?mode=view&am...
by Akari
March 29th, 2014, 12:03 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Okay, then Unit 03 seems to be the FIFO for incoming data - which should be 32 x 32bit in size. Theoretically the FIFO output could be passed straight to the RLE decompression hardware - not quite sure why it's stored in Unit 04 before passing it to RLE decompression hardware. But well, maybe there...
by Akari
March 27th, 2014, 5:33 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Fine. What size is Unit 04? And are you sure that it's used only for RLE encoded data, or could it be a general purpose FIFO for incoming MDEC data? It might be also used for other incoming data (ie. from scaletable & quant table commands; though it's also possible that those commands are routi...
by Akari
March 27th, 2014, 12:01 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Sceme reordering is over. Now data inputs (unit 03) and RLE (units 04 and 05) are separated. All RLE related sceme are merged togather. Newest RLE progress are few outputs from unit 04 (row of NOTs and row of MUXes) and outputs from unit 05. Data from the top of the picture are went directly to IDCT...
by Akari
March 23rd, 2014, 5:56 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Nor handles first 9 bit while and handles next 6 bit.
And all of them and last bit nanded. That gives us detection of value 0Ñ…FE00. So it seems to be RLE :dance

Image
by Akari
March 22nd, 2014, 1:08 am
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Just finished output from unit04. Now I doubt that this is Scale Table Matrix because data is handled in very strange way. Outputs go to set of MUXes, ANDs, NORs, invertors and triggers. Data goes to first set of mux as pair of 8 bit. Triggers receive 10 bit, invertors get next 6 bit. Nor handles fi...
by Akari
March 21st, 2014, 4:12 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Re: Playstation CPU reversing.

Akari, did you ever got that working? Feeding two factors to the circuit, and receiving some intact looking multiplication result from the outputs? I couldn't test it myself since logisim requires java. Would be very interesting to know if it works, and to know how many fractional bits it's strippi...
by Akari
March 20th, 2014, 11:40 pm
Forum: Research
Topic: Playstation CPU reversing [56k Warning]
Replies: 68
Views: 208277

Playstation CPU reversing [56k Warning]

I created this topic to keep this community update with recent foundings in PSX CPU reversing. A lot of other news can be found on http://psxdev.ru/ and in this topic http://forum.emu-russia.net/viewtopic.php?f=13&t=4106 (in russian) It's already 3 and half month from the beginning of CPU revers...