Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Writing C code in Nios II IDE

I am just familiarizing myself the usage of Altera/NIOS packages. For test purposes, I am trying to count the number of clock ticks taken to display "Hello World" 10000 times.

What peripherals do I need to add in it to make it working?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The performance counter is probably good enough, no? I'll let you do your own hunting to find information on it... :-)

    -slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The performance counter is probably good enough, no? I'll let you do your own hunting to find information on it... :-)

    -slacker

    --- Quote End ---

    Hi!

    I'm writing a C code to run on Nios II to produce a sine wave. I'll have to have it compared to a triangular wave, written in VHDL with the comparator also in VHDL. How can I link the C and VHDL codes? Or does the C code get converted to VHDL?