Forum Discussion

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

New to FPGA - Question...?

Hello,

I am new to Altera, FPGA and Verilog, however do have expirience programming TI TMS DSPs.

How would you recommend starting the following basic design:

I am looking to read a digital variable frequency square wave signal(200-1000Hz), count the number of clock cycles during each edge of the square wave, store this result in a register, then have a DSP read this result over a parallel bus?

Any suggestions would be welcome? Should I code it all in Verilog or use some of the Megafuntions like latch etc..?

2 Replies

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

    I realize this question is pretty open,,,,but anyways I started the project by coding some Verilog modules then creating symbols for each and an overall schematic for the design. I guess im just wondering is this the general workflow for professional designers, is there a better way to do it with these tools? Maybe I can post some examples of my code/schematic to have some of the pros crituqe my design as I progress?

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

    --- Quote Start ---

    im just wondering is this the general workflow for professional designers

    --- Quote End ---

    It's a possible way to do it. At least some designers prefer schematic entry for the top level, others (me to) a pure HDL (VHDL or Verilog) design.

    I think, the addressed functionality (counters, registers, timers) can be easily implemented as behavioral HDL.