How can I speed up my math operations in VHDL?

前端 未结 3 1179
名媛妹妹
名媛妹妹 2021-01-03 11:16

I have some calculations going on currently at rising edge of a 75MHz pixel clock to output 720p video on screen. Some of the math (like a few modulo) take too long (20+ns w

3条回答
  •  无人及你
    2021-01-03 11:29

    Here's some techniques:

    • Pipelining - split the logic up to operate over multiple clock cycles
    • multi-cycle path - if you don't need the answer every cycle, you can tell the tools that it's OK for it to take longer. Care is required not to tell the tools the wrong thing though!
    • Think again - for example, do you really need to do x mod 3 on very wide x, or could you use a continuously updated modulo 3 counter?
    • Use better tools - I've had instances where I could meet timing on a deep-logic-path using an expensive synthesizer compared to not meeting timing on the same code using the vendor's synthesizer.

    More extreme solutions involve changing the silicon, for a faster device, or a newer device, or a newer, faster device.

提交回复
热议问题