6/21: Three Bit Multiplication

VerilogShawnNo Comments

Here is an example of a three bit multiplication in Verilog made to fit into a EPM7160SLC84-10.

I think I wrote a four bit one that I will try to find.
Read the rest of this entry »

6/6: One-Hot State Decoder

ASM, MIPS32ShawnNo Comments

Here is a quick way for you to decode a one hot state value into a binary representation. This code is built for the MIPS32 architecture.
Read the rest of this entry »

5/4: jQuery Click/Double Click

jQueryShawn4 Comments

The battle of the standards is constantly a struggle. I found myself needing a solution to the jQuery Click/Double Click problem. This example will send one click or double click to the helper functions. Compatible with Firefox 2+, Chrome 4+, and IE > 6+. Thanks Allan G for your update. Using $.live binds directly to the click handler allowing for new element checking. Use $.bind if you don’t have dynamic content or $.bind inside of $.ready.

Read the rest of this entry »