--- Log opened Fri May 08 00:00:40 2015 | ||
stekern | olofk: nope... | 03:05 |
---|---|---|
stekern | I'll ping him again about it | 03:05 |
olofk | How do I detect overflow in a signed addition? xor between MSBs? | 14:02 |
olofk | (with an extra MSB) | 14:03 |
olofk | I got a for loop in verilog where I set bigassnumber = bigassnumber+smallnumber | 14:04 |
stekern | olofk: this is how it's done in mor1kx: https://github.com/openrisc/mor1kx/blob/master/rtl/verilog/mor1kx_execute_alu.v#L209 | 14:25 |
dalias | olofk, if (bigassnumber > TYPE_MAX-smallnumber) ... | 14:29 |
dalias | this is sufficient assuming the values are positive | 14:29 |
dalias | no idea how to express that in verilog | 14:30 |
dalias | if you have well-defined overflow semantics like unsigned arithmetic would, then signbit^carrybit should be what you want, i think | 14:31 |
olofk | dalias: I don't think anyone has ever called verilog well-defined... especially when it comes to arithmetics :) | 14:34 |
dalias | :-) | 14:40 |
GeneralStupid | stekern: yeah i thought of soumething like that, too... But 8 Mb of RAM is not much for that. I thought of not using a coloured image | 15:05 |
GeneralStupid | iam not sure what the best solution of this is. Is it a good approach to access the sdram with the mor1k, vga and a coprocessor? | 15:25 |
GeneralStupid | stekern: is your college's code open source? | 15:40 |
stekern | GeneralStupid: yes, but I don't think the place where the source was published exists anymore | 16:43 |
stekern | I can try to see it if I can find it somewhere on my hard-disk | 16:44 |
GeneralStupid | stekern: that would be great as an template :) | 19:26 |
stekern | GeneralStupid: I found the report at least, will dig some more for the code. http://oompa.chokladfabriken.org/tmp/motion_detection_in_video_sequence.doc | 19:40 |
GeneralStupid | stekern: the problem i have, at the moment, what did you did on the microprocessor? | 19:46 |
stekern | the microprocessor only interpreted the alarm signal and sent a message over a gsm modem | 19:46 |
stekern | so not really related to the motion detection | 19:47 |
GeneralStupid | my main goal is to show the benefit of softcore + co processors ... so i want both, hardware and software solution. It should show that i can do everything in software and only some little parts in hardware for gaining performance... But just because of the RAM it seems like i have to do the most stuff in hardware and the softcore is more or less unnecessary. | 19:55 |
GeneralStupid | oh its great: I worked three years as software developer and this is exactly what happened one time to me: http://dilbert.com/strip/1996-07-09 | 20:33 |
stekern | ;) | 20:35 |
--- Log closed Sat May 09 00:00:41 2015 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!