Skip to content

samdejong86/Arria-V-ADC-Ethernet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arria V ADC to Ethernet

Description

This project reads an ADC and sends waveforms to a PC via an ethernet connection

It was designed for the Arria V starter kit, and uses the Terasic Data Conversion Card in the HSMC slot.

The code in the master branch of this project was written in verilog. The 'VHDL' branch of this repository contains the same project, but written in VHDL.

Submodules

The project contains two submodules: Arria-V-ADC-Ethernet-software (as the software/ subdirectory) and Arria-V-ADC-Ethernet-scripts (as the scripts/ subdirectory

Contents

  • The top level file is ArriaVADCEthernet_top.sv. This file references other modules described in src/:

    1. adcSync.v: Syncs the ADC
    2. delayVec.sv: generates an array of delayed signals
    3. getSample.sv: gets the requested sample
    4. trigger.v: generates a trigger
    5. waveformGenerator.sv: generates a waveform
  • ArriaVADCEthernet_top.sdc contains the timing constraints for the project, and references other sdc files in src/:

    1. commentOutSDCFile.sdc: Comments out an SDC file so it is ignored by the fitter*
    2. rgmii_clocks.sdc: sets up the clocks for the RGMII interface*
    3. rgmii_input.sdc: sets up the restraints for the RGMII input clocks*
    4. rgmii_output.sdc: sets up the restraints for the RGMII output clocks*
  • To control the ethernet interface, a Nios II system is used. This is described in Nios_CPU_qsys.qsys

  • Several IP modules are used:

    1. adc_pll: A pll clock for the ADC
    2. adc_mux: A mux for switching between two 14 bit buses
    3. ddio_buffer: a DDIO buffer for the ethernet TX clock
  • ArriaVADCEthernet_top.stp is a signal tap instance for debugging

* These files are from the Arria V Board Update Portal example

Acknowledgements

I could not have built this without looking at the Board Update Portal for the Arria V Starter Kit.