/*50MHzから約1789772.5Hzを生成する加算値 63 しきい値 1697 誤差 0.254272Hz*/circuit DDS_50to17897725{sel max<12>, add<6>;reg_wr count<12>;instrout run;sel sa<12>;par{add = 0b111111;max = 0x6A1;sa = count - max;if(sa<11>){ // count < maxcount += (0b000000 || add);}else{count := sa;run();}}}