问题描述
什么叫FPGA(Xilinx Virtex 5/7)上的执行线程,理论上它可以有多少个(最小和最大)?
What is it called the thread of execution on the FPGA (Xilinx Virtex 5/7), and how many number of its can be theoretically (minimum and maximum)?
推荐答案
FPGA是可重新编程的电路,并且这些电路的组件始终并行运行.来自软件开发和多线程处理器的线程概念不适用于FPGA上的硬件设计.
FPGAs are reprogrammable circuits, and the components of those circuits are always running in parallel. The concept of threads from software development and multi-threaded processors do not apply to hardware design on an FPGA.
如果将线程"定义为可以与其他单元并行运行的计算单元,则可以说FPGA具有成千上万个线程,具体取决于它可以支持的逻辑门和触发器的数量.
If you define a "thread" as a unit of computation that can operate in parallel from other units, you could say an FPGA has thousands or millions of threads depending on the amount of logic gates and flip-flops it can support.
如果将线程定义为软件线程,则实际上取决于您在FPGA上放置的内容.您可以将FPGA编程为包含单个处理器.如果没有操作系统或其他低级嵌入式设置,则仅支持单个线程.如果在其之上运行操作系统,则将获得与该操作系统和线程库所能支持的软件线程一样多的软件线程.
If you define a thread as a software thread, it really depends what you are putting on the FPGA. You could program the FPGA to contain a single processor; without an operating system or other low-level embedded setup this would only support a single thread. If you run an OS on top of it, you'll get as many software threads as the OS and your threading library can support.
当然,对于FPGA,您还可以在其上放置多个处理器,然后您就可以使软件线程实际上在硬件上并行运行,类似于多核处理器.可以在特定FPGA上放置的处理器数量受到处理器尺寸,FPGA上可用逻辑门和存储器以及将它们全部连接在一起并满足时序的能力的限制.您可以在Virtex类FPGA上放置数十个小型8位处理器,每个处理器都可以运行独立的软件.
Of course with an FPGA you can also put more than one processor on it, then you can have software threads actually running in parallel on the hardware, similar to a multicore processor. The number of processors you could put on a specific FPGA is limited by the processor size, the available logic gates and memory on the FPGA, and the ability to connect it all together and meet timing. You could put dozens of small 8-bit processors onto a Virtex class FPGA, where each could be running independent software.
这篇关于FPGA(Xilinx Virtex 5/7)上的线程是什么,它可以有多少个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!