FPGA通过CORDIC求解三角函数(FOC)
Error parsing MDX
[next-mdx-remote-client] error compiling MDX:
Expected a closing tag for `<br>` (61:68-61:72) before the end of `tableData`
59 | | ① | **参数化设计**:使用 `localparam` 定义位宽、级数等,支持复用 |
60 | | ② | **符号扩展**:将 `IW` 位输入扩展到 `WW` 位(左侧符号扩展 + 右侧补 0) |
> 61 | | ③ | **前置旋转(Pre-rotation)**:<br> - 根据 `i_phase[29:27]`(最高 3 位)判断象限<br> - 调整 `xv[0]`, `yv[0]`, `ph[0]`,使相位落入 ±45° |
| ^
62 | | ④ | **CORDIC 迭代(流水线)**:<br> - 使用 `generate for` 生成 `NSTAGES` 级流水线<br> - 每级根据 `ph[i]` 符号决定旋转方向<br> - 使用 `>>>` 实现右移(`2^{-i}`) |
63 | | ⑤ | **舍入处理**:<br> - 向偶数舍入(银行家舍入法)<br> - 保留高 `OW` 位作为输出 |
More information: https://mdxjs.com/docs/troubleshooting-mdx
🧑🔧 See how to debug and solve most common MDX errors