Michael Riepe wrote:
During those boring easter holidays ;) I have found another way to implement the ROP2 unit. It's based on the formulas (in pseudo-C): a & b == b ? a : 0 // and a & ~b == b ? 0 : a // andn a ^ b == b ? ~a : a // xor a | b == b ? 1 : a // or ~(a | b) == b ? 0 : ~a // nor ~(a ^ b) == b ? a : ~a // xnor a | ~b == b ? a : 1 // orn ~(a & b) == b ? ~a : 1 // nand b ? a : c // mux b ? c : a // muxr (new: "reversed" mux)
It loooks nice. is there any way to get some other logic in like full word sign extends/0/1 's Ben. ************************************************************* To unsubscribe, send an e-mail to majordomo@seul.org with unsubscribe f-cpu in the body. http://f-cpu.seul.org/