Re: Prolog implementation
Posted by cadet1620 on Jul 04, 2018; 2:00pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Prolog-implementation-tp4031310p4032196.html
Note that Ivan's solution is calling the DFF objects' clock function twice per clock cycle. clock(TICK) stores the input value in the object. clock(TOCK) copies the stored value to the output.
This is how the HardwareSimulator implements DFF (it actually has two functions: clockUp and clockDown).
--Mark