FPGA笔试面试题目记录

1 logic utilization

  • 题目 :Rank the following operations from lowest utilization to highest. Assume that all variables are 32-bit integers,that the operations are implemented using LUTs ony and that the synthesiser will produce an optimal digital circuit.
    1.X = Y * 3
    2.X = Y * 8
    3.X = Y + 2
    4.X = Y + 32
  • 解析
    1.X = Y * 3

2.X = Y * 8

综合后的电路通过在低位补3个0来实现乘8。

3.X = Y + 2

4.X = Y + 32


对比3、4,他们的不同在于加数。当x与2相加时,2的二进制形式为:2'b10,x的最低位可保持不变,其余位参与运算。当x与32相加时,32的二进制形式为:2'b10_0000,x的低5位可保持不变,其余位参与运算。

  • 答案:2431
相关推荐
brave and determined2 小时前
可编程逻辑器件学习(day3):FPGA设计方法、开发流程与基于FPGA的SOC设计详解
嵌入式硬件·fpga开发·soc·仿真·电路·时序·可编程逻辑器件
Lee_yayayayaya5 小时前
锁相环技术及FPGA实现
fpga开发
Js_cold9 小时前
Verilog局部参数localparam
开发语言·fpga开发·verilog
promising-w10 小时前
【FPGA】使用移位实现LED流水灯
fpga开发
爱吃汽的小橘11 小时前
ZYNQ介绍
fpga开发
ThreeYear_s20 小时前
电力电子技术学习路径与FPGA/DSP技术结合方向(gemini生成)
学习·fpga开发
奋斗的牛马1 天前
FPGA—ZYNQ学习spi(六)
单片机·嵌入式硬件·学习·fpga开发·信息与通信
GateWorld1 天前
FPGA核心约束类型与语法
fpga开发
SKYDROID云卓小助手1 天前
无人设备遥控器之数字图传技术
运维·服务器·单片机·嵌入式硬件·fpga开发
Topplyz1 天前
在FPGA中实现频率计方案详解(等精度测量)
fpga开发·fpga·频率计