Searching \ for '[PIC]: Exporting data from MPLAB SIM to MSoft Exce' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=data
Search entire site for: 'Exporting data from MPLAB SIM to MSoft Exce'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Exporting data from MPLAB SIM to MSoft Exce'
2002\10\22@055219 by tony

flavicon
face
Hello all

I have an algorithm that takes a 64 bit number
and manipulates / encrypts it to a 32 bit number.

I wish to run this algorithm in MPLAB SIM and
export the resultant values to a text or Excel file.

The reason I wish to do this is to ensure that my algorithm
does not repeat a value more than twice.

Has anyone got any suggestions on how to do this
Has anyone done something similar before
Is there anyway to extend the RAM size I will require to run
approximately 10 000 to 100 000 iterations

TIA

TONY BAIA
Centurion Systems
P.O. Box 506
Cramerview 2060
South Africa
e-mail : spam_OUTtony-nospamTakeThisOuTspamcentsys.co.za  (takeout -nospam )
Web : http://www.centsys.co.za

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@063018 by Michael Rigby-Jones

flavicon
face
{Quote hidden}

This sounds tricky, I don't know of any way to capture outputs from MPLAB.
Considering an algorithm is an algorithm, and if implemented correctly
should give the same results on any platform, then can you not test this on
a desktop PC by writting a simple implementation in C/PASCAL/BASIC etc?

Regards

Mike

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@080607 by Olin Lathrop

face picon face
> I have an algorithm that takes a 64 bit number
> and manipulates / encrypts it to a 32 bit number.
>
> I wish to run this algorithm in MPLAB SIM and
> export the resultant values to a text or Excel file.
>
> The reason I wish to do this is to ensure that my algorithm
> does not repeat a value more than twice.
>
> Has anyone got any suggestions on how to do this

I would model the algorithm on the host.  You can then easily write a
program to examine all sorts of attributes.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@082311 by Jan-Erik Soderholm

face picon face
A 64 bit number can hold 2**64 different values.
A 32 bit number can hold 2**32 different values.

Thus, if your 64 bit number can have *any* value, your
32 bit ("encrypted") numbers vill each have 2**(64-32),
or 2**32 duplicates. At least. Best case.
That's a bit more then "twice"...

Or am I missing something ? Maybe you are not expecting
all possible 64 bit values ?


Jan-Erik Svderholm
S:t Anna Data
Sweden


{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@085323 by Jeff

flavicon
face
----- Original Message -----
From: "Jan-Erik Soderholm" <KILLspamjan-erik.soderholmKILLspamspamTELIA.COM>
To: <RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU>
Sent: Tuesday, October 22, 2002 8:21 AM
Subject: Re: [PIC]: Exporting data from MPLAB SIM to MSoft Excel or Text
file


> A 64 bit number can hold 2**64 different values.
> A 32 bit number can hold 2**32 different values.
>
> Thus, if your 64 bit number can have *any* value, your
> 32 bit ("encrypted") numbers vill each have 2**(64-32),
> or 2**32 duplicates. At least. Best case.
> That's a bit more then "twice"...
>
I believe that should be 2**64 -2**32 duplicates
a much larger number
Jeff

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamBeGonelistservspamBeGonespammitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@090947 by Jan-Erik Soderholm

face picon face
 # possible 64 bit numbers         2**64
 --------------------------   =  --------   =  2**(64-32)   =  2**32
 # possible 32 bit numbers         2**32

(2**64 - 2**32) *is* a much larger number, but it's not the number
we are talking about here, I belive. Try it with smaller numbers
like :

 2**8     256
 ---- =   ---     =  8  =   2**3    =   2**(8-5)
 2**5      32


Jan-Erik Svdrholm.


{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistservEraseMEspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@105350 by rey R Fischman

flavicon
face
you give how many duplicates for any single encoded answer
I give how many duplicates for all possible encoded answers
Jeff

{Original Message removed}

2002\10\22@124603 by Sergio Masci

picon face
----- Original Message -----
From: Tony Baia <RemoveMEtonyspamTakeThisOuTCENTSYS.CO.ZA>
To: <PICLISTEraseMEspam.....MITVMA.MIT.EDU>
Sent: Tuesday, October 22, 2002 10:51 AM
Subject: [PIC]: Exporting data from MPLAB SIM to MSoft Excel or Text file


{Quote hidden}

The xcsim simulator allows this sort of thing. You can get it to stop at a
given program location within the program you are simulating and get it to
write values to a file or some other process which can then do the
validation for you. You could even embed the validation directly in the
simulation if you wanted to.

Regards
Sergio Masci

http://www.xcprod.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspammitvma.mit.edu with SET PICList DIGEST in the body


2002\10\22@181434 by Jonathan Johnson

flavicon
face
2**64=18446744073709551616
2**32=4294967296
does this clarify what Jeff is trying to explain to you 2**64 IS a VERY much
larger number of possible combinations if you are allowing for all numbers
up to 2**64. Encrypting the 64 bit number to a 32 bit number would amount to
something along the lines of probabilistic encryption where any resulting
cyphertext (encrypted number) could have been created by a number of
different keys given the same plaintext (non encrypted number), in this case
something resembling 2**32 different keys!(if I have this figure wrong
please somebody correct me). The exception to this would be if you are
creating a 32 bit HASH of the 64 bit number but I know of no algorithm that
does this, there are others that use larger numbers such as SHA-1 and MD5
but these work with larger numbers. Given the above calc's it looks like you
are going to get a LOT more than just repeats of it twice you will get them
(2**32)+1 times or am I wrong here......(VERY LATE NIGHT + VERY EARLY
morning = questionable maths) ;-)

P.S I recommend that you read Applied Cryptography by Bruce Schneier

Regards Jonathan

{Original Message removed}

2002\10\23@022147 by tony

flavicon
face
Thank you to all who have replied.

My maths was definitely incorrectly done and therefore
many repeats will occur as stated in the replies
(2 ^ 32 times ) as I will be using all 64 bits

I will have to look at the impact of this on my application

Once again thank you all for your valuable time

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestEraseMEspamEraseMEmitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...