proc compile_nuand { root platform } { vlib nuand vcom -work nuand -2008 [file join $root ./synthesis/constellation_mapper.vhd] vcom -work nuand -2008 [file join $root ./synthesis/sync_fifo.vhd] vcom -work nuand -2008 [file join $root ./synthesis/uart.vhd] vcom -work nuand -2008 [file join $root ./synthesis/cordic.vhd] vcom -work nuand -2008 [file join $root ./synthesis/nco.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fsk_modulator.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fsk_demodulator.vhd] vcom -work nuand -2008 [file join $root ./synthesis/uart.vhd] vcom -work nuand -2008 [file join $root ./synthesis/tan_table.vhd] vcom -work nuand -2008 [file join $root ./synthesis/iq_correction.vhd] vcom -work nuand -2008 [file join $root ./synthesis/synchronizer.vhd] vcom -work nuand -2008 [file join $root ./synthesis/reset_synchronizer.vhd] vcom -work nuand -2008 [file join $root ./synthesis/handshake.vhd] vcom -work nuand -2008 [file join $root ./synthesis/tb/handshake_tb.vhd] vcom -work nuand -2008 [file join $root ./synthesis/signal_processing_p.vhd] vcom -work nuand -2008 [file join $root ../altera/common_dcfifo/common_dcfifo.vhd] if { ($platform == "bladerf") || ($platform == "bladerf-micro") } { vcom -work nuand -2008 [file join $root ../../platforms/${platform}/vhdl/wrappers/lb_fifo.vhd] vcom -work nuand -2008 [file join $root ../../platforms/${platform}/vhdl/wrappers/rx_fifo.vhd] vcom -work nuand -2008 [file join $root ../../platforms/${platform}/vhdl/wrappers/tx_fifo.vhd] vcom -work nuand -2008 [file join $root ../../platforms/${platform}/vhdl/wrappers/rx_meta_fifo.vhd] vcom -work nuand -2008 [file join $root ../../platforms/${platform}/vhdl/wrappers/tx_meta_fifo.vhd] } else { # Don't error out because it might not matter... puts "WARNING: Unknown platform: ${platform}" } vcom -work nuand -2008 [file join $root ./synthesis/bit_stripper.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fir_filter.vhd] vcom -work nuand -2008 [file join $root ./synthesis/atsc_tx.vhd] vcom -work nuand -2008 [file join $root ./simulation/util.vhd] vcom -work nuand -2008 [file join $root ./synthesis/tb/fir_filter_tb.vhd] vcom -work nuand -2008 [file join $root ./synthesis/tb/atsc_tx_tb.vhd] vcom -work nuand -2008 [file join $root ../../platforms/common/bladerf/vhdl/fx3_gpif_p.vhd] vcom -work nuand -2008 [file join $root ./simulation/fx3_model.vhd] vcom -work nuand -2008 [file join $root ./simulation/lms6002d_model.vhd] vcom -work nuand -2008 [file join $root ./synthesis/lms6002d/vhdl/lms6002d.vhd] vcom -work nuand -2008 [file join $root ./synthesis/lms6002d/vhdl/tb/lms6002d_tb.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fifo_readwrite_p.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fifo_reader.vhd] vcom -work nuand -2008 [file join $root ./synthesis/fifo_writer.vhd] vcom -work nuand -2008 [file join $root ./trigger/trigger.vhd] vcom -work nuand -2008 [file join $root ./synthesis/signal_generator.vhd] vcom -work nuand -2008 [file join $root ./synthesis/rx_packet_generator.vhd] vcom -work nuand -2008 [file join $root ./synthesis/set_clear_ff.vhd] vcom -work nuand -2008 [file join $root ./pll_reset/vhdl/pll_reset.vhd] vcom -work nuand -2008 [file join $root ./ps_sync/vhdl/ps_sync.vhd] vcom -work nuand -2008 [file join $root ./rfic_spi_controller/vhdl/rfic_spi_controller.vhd] vcom -work nuand -2008 [file join $root ./synthesis/bladerf_rfic_spi_ctrl.vhd] } proc compile_nuand_tb { root platform } { vcom -work nuand -2008 [file join $root ./simulation/sample_stream_tb.vhd] vcom -work nuand -2008 [file join $root ./simulation/rfic_spi_tb.vhd] }