derive_pll_clocks derive_clock_uncertainty set_multicycle_path -from {emu|cpu_wrapper|cpu_inst*} -to {emu|ram*} -setup 2 set_multicycle_path -from {emu|cpu_wrapper|cpu_inst*} -to {emu|ram*} -hold 1 set_multicycle_path -from {emu|amiga_clk|cck*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|amiga_clk|cck*} -to {emu|ram1|*} -hold 1 set_multicycle_path -from {emu|minimig|*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|minimig|*} -to {emu|ram1|*} -hold 1 # CD32 Akiko PBX address path to SDRAM. pbx_byte_idx only advances on dma_ack, # which fires at most once per 6+ emu-clk cycles (chipdma_arb's S_DRIVE takes 4 # cycles minimum). Address is stable for well over 2 launch-clk cycles before # the next update, so a 2-cycle setup multicycle is safe. Mirrors the existing # emu|minimig|* -> emu|ram1|* relaxation. Without this, pbx_seccnt -> sd_addr # violates by ~2.5 ns. set_multicycle_path -from {emu|fastchip|akiko|*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|fastchip|akiko|*} -to {emu|ram1|*} -hold 1 set_multicycle_path -from {emu|chipdma_arb|*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|chipdma_arb|*} -to {emu|ram1|*} -hold 1 # amiga_clk c1/c3 are the 7 MHz-rate phase regs in the 28 MHz (clk_28) domain # (c1 <= ~c3). The chip-arming address path launches from c1, passes through # chipdma_arb combinational logic, and lands on sdram_ctrl.sd_addr captured by # the 113 MHz SDRAM clock. -from matches the LAUNCH register (c1), not the # chipdma_arb pass-through nodes, so the chipdma_arb|* and cck* relaxations # above do NOT cover it and sd_addr violates by -0.49 ns. clk_114:clk_28 is # 4:1; sdram_ctrl edge-detects ~old_7m&c_7m (sdram_ctrl.v:237-243), so a c1 # launch at fast edge N is detected at N+1 and the state-0 RAS capture # (sdram_ctrl.v:301-318) is at N+2 — exactly 2 clk_114 cycles, never the # adjacent edge. setup 2 matches; setup >= 3 would NOT be safe. set_multicycle_path -from {emu|amiga_clk|c1*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|amiga_clk|c1*} -to {emu|ram1|*} -hold 1 set_multicycle_path -from {emu|amiga_clk|c3*} -to {emu|ram1|*} -setup 2 set_multicycle_path -from {emu|amiga_clk|c3*} -to {emu|ram1|*} -hold 1 # Bridge DMA write port on ram2 (DDR3) is a CDC handshake. chipdma_arb # (clk_sys) registers dma_ddr_cs_r plus the entire DDR bus (addr / wr / l / u) # on arm_now and holds them stable until S_ACK. ddram_ctrl (clk_114) # synchronizes dmaCS through a 2-FF chain, edge-detects the rise, and latches # data on that edge — by which point the data has been valid in chipdma_arb # for many clk_114 cycles. dmaACK comes back as a level, synchronized by a # 2-FF chain inside chipdma_arb. # # dmaCS is therefore the only cross-domain bit that needs timing, and its sync # chain handles metastability. The data lines are stable by handshake, so # set_false_path is correct. set_false_path -from {*chipdma_arb*dma_ddr_addr_r*} -to {*ddram_ctrl*} set_false_path -from {*chipdma_arb*dma_ddr_wr_r*} -to {*ddram_ctrl*} set_false_path -from {*chipdma_arb*dma_ddr_l_r*} -to {*ddram_ctrl*} set_false_path -from {*chipdma_arb*dma_ddr_u_r*} -to {*ddram_ctrl*} # Also false_path the two CDC sync first-stages. dma_ddr_cs_r -> dmaCS_sync1 # is the slow->fast (clk_sys -> clk_114) handshake; dmaACK_r -> # ddr_in_ack_sync1 is the reverse. Both are absorbed by 2-FF synchronizer # chains in their target domains. Without this, Quartus times them at a single # cycle and reports -3.7 ns slack. set_false_path -from {*chipdma_arb*dma_ddr_cs_r*} -to {*ddram_ctrl*dmaCS_sync*} set_false_path -from {*ddram_ctrl*dmaACK_r*} -to {*chipdma_arb*ddr_in_ack_sync*} set_false_path -from {emu|cpu_wrapper|z3ram_*} set_false_path -from {emu|cpu_wrapper|z2ram_*} set_false_path -from {emu|minimig|USERIO1|cpu_config*} set_false_path -from {emu|minimig|USERIO1|ide_config*} set_false_path -from {emu|minimig|USERIO1|bootrom} set_false_path -from {emu|minimig|CPU1|halt} # A2065: the card's 68k side (clk_sys) reaches its DDR3 mailbox (DDRAM_CLK, # clk_114) over 2-FF level-detect CDC handshakes inside a2065_regfile and # a2065_ddram. Those are self-timed and need no multicycle exception. If the # fitter reports real violations across that boundary, add a targeted # set_false_path/set_max_delay derived from report_timing — do not guess. # yc_out chroma LUT: multicycle retained from the old bridge, where boardram BRAM # placement congestion pushed this path to -0.471ns. The flat-DDR3 design removes # that BRAM, so this exception may now be UNNECESSARY. Re-validate against the # merged fitter run (R3); keep only if report_timing still shows the path marginal. set_multicycle_path -from {yc_out|chroma_LUT_BURST[*]} \ -to {yc_out|phase[*].u[*]} -setup 2 set_multicycle_path -from {yc_out|chroma_LUT_BURST[*]} \ -to {yc_out|phase[*].u[*]} -hold 1 # emu PLL cross-clock: counter[1]→counter[0] marginal path set_multicycle_path -setup 2 -from [get_clocks "emu|pll|pll_inst|altera_pll_i|cyclonev_pll|counter\[1\].output_counter|divclk"] -to [get_clocks "emu|pll|pll_inst|altera_pll_i|cyclonev_pll|counter\[0\].output_counter|divclk"] set_multicycle_path -hold 1 -from [get_clocks "emu|pll|pll_inst|altera_pll_i|cyclonev_pll|counter\[1\].output_counter|divclk"] -to [get_clocks "emu|pll|pll_inst|altera_pll_i|cyclonev_pll|counter\[0\].output_counter|divclk"] #these constraints aren't really correct, but help fitting. #28MHz pixel clock might be affected when scandoubler fx is used. set_multicycle_path -to {*Hq2x*} -setup 2 set_multicycle_path -to {*Hq2x*} -hold 1 set_multicycle_path -from [get_clocks { *|pll|pll_inst|altera_pll_i|*[0].*|divclk}] -to {ascal|*} -setup 2 set_multicycle_path -from [get_clocks { *|pll|pll_inst|altera_pll_i|*[0].*|divclk}] -to {ascal|*} -hold 1