FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits

Signals in VHDL

Razvan1203
Beginner
385 Views

I need to convert a C function to a vhdl code. In the C function there is an array uint32_t a[20] and I convert it to a signal in vhdl (type array_type is array (0 to 19) of std_logic_vector(31 downto 0); ). I made a FSM for this implementation and the problem is when I try to assign some values to the array (a(i) <= some_value;),

However, when I check in simulation (waveform), all values remain 'X', even after a few clock cycles.
What could be the reason for this behavior?

Additional details:

  • i is properly incremented.

  • The value assigned (some_value) is well-defined (not 'X').

  • The FSM transitions correctly through states.

  • I have tried using an initialization process for a, but still get 'X'.

Any ideas on what could be wrong?

Labels (1)
0 Kudos
3 Replies
sstrell
Honored Contributor III
346 Views

Really need to see the design (at least some code) and the testbench.

0 Kudos
ShengN_Intel
Employee
328 Views

Hi,


Possible to provide the design for review?


Thanks,

Regards,

Sheng


0 Kudos
ShengN_Intel
Employee
243 Views

Hi,


Does the problem being resolved? Any further update on the design providing?


Thanks,

Regards,

Sheng


0 Kudos
Reply