Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for the speedy replies!
--- Quote Start --- if you just insert clock only in add3: always @ (posedge clock) --- Quote End --- I tried using CLOCK_50 which I think should work on my DE1? And the display just read 0 --- Quote Start --- Check with pencil and paper! Perhaps you can give a numerical example of what you want to achieve. --- Quote End --- Thats what is driving me absolutely crazy. I have done it hundreds of times on pen and paper and it's work. I'm trying to convert binary like 01011 to 0001 0001. Here's a run through. TENS|ONES|01011 0000|0010|11 SHIFT 3 (no +3) 0000|0101|1 SHIFT 4 (ones is >4 so +3) 0000|1000|1 0001|0001| SHIFT 5 And the 5th shift gives you the BCD!