Error in HDL Code Generation "Colon operands must have integer values when interacting with type 'embedded.fi'."

3 views (last 30 days)
Hello,
getting started with an FPGA (Zynq xc7z020 with Xilinx Vivado), I received an error while validating datatypes in the step "fixed-point conversion". The Error says: "Colon operands must have integer values when interacting with type 'embedded.fi'.". Pictures of the code and the error are included. Now my overall goal is to create a Sinus as an FPGA Output. So I included a time vector to define the resolution for my sinus curve. That's what the variable "time" consists of, but it seems like I can't define my time vector like this. What's the solution? Can I define a vector with this resolution in any other way?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!