2012-12-03 10:58:32 +00:00
|
|
|
|
2014-08-30 22:12:28 +00:00
|
|
|
# need iverilog version 0.10 for signed integers
|
2014-08-31 21:25:02 +00:00
|
|
|
# VERILOG=/usr/local/bin/iverilog
|
|
|
|
|
VERILOG=iverilog
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2013-07-04 22:28:39 +00:00
|
|
|
VERILOGFLAGS = -v -Wall -Wno-timescale -DSIMULATION $(IVLFLAGS) $($*_FLAGS)
|
2013-05-03 13:13:44 +00:00
|
|
|
%.vvp:
|
2016-03-04 18:21:41 +00:00
|
|
|
$(VERILOG) $(VERILOGFLAGS) -o $@ $(filter %.v, $^)
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2013-05-03 13:30:27 +00:00
|
|
|
lxt/%.lxt: %.vvp
|
|
|
|
|
mkdir -p lxt/
|
2012-12-03 10:58:32 +00:00
|
|
|
$< -lxt2 | tee $*.log
|
|
|
|
|
|
2013-05-03 13:30:27 +00:00
|
|
|
.PRECIOUS: lxt/%.lxt
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2014-08-30 21:20:16 +00:00
|
|
|
VPATH=../../irena/altera/adc128:../../altera:../../altera/mega:../../idef-x/altera:\
|
|
|
|
|
../../altera/actel:../../sirena/altera:../../sirena/altera/l3:\
|
|
|
|
|
../../sirena/altera/encode:../../hetept/altera:\
|
2014-08-31 18:24:27 +00:00
|
|
|
../../arena/altera/idef-x:../../arena/altera
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
stein.vvp: stein.v stein_core.v stein_pha.v frontend.v backend.v memport.v \
|
2013-06-18 14:31:20 +00:00
|
|
|
message.v uart.v l3code.v crc.v msg_regs.v \
|
|
|
|
|
mem.v fifo.v hamming.v counters.v \
|
|
|
|
|
ppsschedule.v pha.v eeprom.v l3registerfile.v \
|
2013-07-04 15:48:18 +00:00
|
|
|
processor.v l3regfifo.v adder.v adderi.v mult.v log7to4.v trim.v bitrange.v cmp.v \
|
2013-12-13 20:46:20 +00:00
|
|
|
compression.v encode.v itof.v log2by8.v \
|
2014-02-11 16:31:12 +00:00
|
|
|
opheater.v sfilter.v \
|
|
|
|
|
stein_middleend.v stein_frontend.v clk_domain_switch.v stein_ix_controller.v stein_l1_counter.v stein_l2trig.v \
|
2015-02-27 19:05:54 +00:00
|
|
|
stein_adc_controller.v leadingbit.v stein_ix_acquire_switch.v countbits.v stein_channel_map.v \
|
2014-08-27 08:41:30 +00:00
|
|
|
barrel.v priority_encoder.v adc128s102.v idefx.v \
|
2014-08-30 21:20:16 +00:00
|
|
|
serializer.v \
|
2014-08-31 18:24:27 +00:00
|
|
|
ix.v testpulser.v
|
2013-07-05 14:22:23 +00:00
|
|
|
|
2014-05-06 08:34:40 +00:00
|
|
|
stein_FLAGS = -sstein_test -DSTEIN_TEST -DUART3MHZ -DINFERRED_SRAM -DM24MHZ -DTRIG_NOINVERT
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2015-04-12 19:47:48 +00:00
|
|
|
step.vvp: step.v stein_core.v stein_pha.v frontend.v backend.v memport.v por.v \
|
2014-11-04 13:19:12 +00:00
|
|
|
message.v uart.v l3code.v crc.v msg_regs.v \
|
|
|
|
|
mem.v fifo.v hamming.v counters.v \
|
|
|
|
|
ppsschedule.v pha.v eeprom.v l3registerfile.v \
|
|
|
|
|
processor.v l3regfifo.v adder.v adderi.v mult.v log7to4.v trim.v bitrange.v cmp.v \
|
|
|
|
|
compression.v encode.v itof.v log2by8.v \
|
|
|
|
|
opheater.v sfilter.v \
|
2015-02-20 01:49:42 +00:00
|
|
|
stein_channel_map.v \
|
2014-11-04 13:19:12 +00:00
|
|
|
stein_middleend.v stein_frontend.v clk_domain_switch.v stein_ix_controller.v stein_l1_counter.v stein_l2trig.v \
|
|
|
|
|
stein_adc_controller.v leadingbit.v stein_ix_acquire_switch.v countbits.v \
|
|
|
|
|
barrel.v priority_encoder.v adc128s102.v idefx.v \
|
|
|
|
|
serializer.v \
|
2014-12-02 12:14:20 +00:00
|
|
|
ix.v testpulser.v actel.v
|
2014-11-04 13:19:12 +00:00
|
|
|
|
2014-11-21 11:27:00 +00:00
|
|
|
step_FLAGS = -sstep_test -DSTEP_TEST -DUART3MHZ -DINFERRED_SRAM -DM24MHZ -DTRIG_NOINVERT -DARxSTREAM
|
2014-11-04 13:19:12 +00:00
|
|
|
|
2016-03-04 18:21:41 +00:00
|
|
|
l3win_test.vvp: step_l3win_test.v stein_pha.v backend.v hamming.v \
|
|
|
|
|
l3code.v l3registerfile.v ppsschedule.v memport.v fifo.v \
|
|
|
|
|
message.v pha.v eeprom.v msg_regs.v counters.v mem.v \
|
|
|
|
|
compression.v encode.v itof.v log2by8.v \
|
|
|
|
|
processor.v l3regfifo.v log7to4.v adder.v trim.v cmp.v adderi.v mult.v bitrange.v \
|
|
|
|
|
step.l3v step_dps.iv stein_channel_map.v countbits.v
|
|
|
|
|
|
|
|
|
|
l3win_test_FLAGS = -sl3win_test -DL3WIN_TEST -DUART3MHZ -DINFERRED_SRAM -DM24MHZ -DTRIG_NOINVERT -DARxSTREAM
|
|
|
|
|
|
2012-12-03 10:58:32 +00:00
|
|
|
QUARTUS=/usr/local/quartus/altera9.1sp1/quartus
|
|
|
|
|
export PATH:=$(PATH):$(QUARTUS)/bin
|
|
|
|
|
|
|
|
|
|
MAPFLGS = $(patsubst %, --verilog_macro="%",$($*_MAPDEFS))
|
|
|
|
|
|
2013-06-28 10:34:02 +00:00
|
|
|
%.rbf: %.qpf %.qsf %.sdc %.v
|
2012-12-03 10:58:32 +00:00
|
|
|
quartus_map $< $(MAPFLGS)
|
|
|
|
|
quartus_fit $<
|
|
|
|
|
quartus_asm $<
|
|
|
|
|
quartus_sta $<
|
2013-07-04 11:49:00 +00:00
|
|
|
grep -i warning $*.*.rpt \
|
|
|
|
|
| grep -v 'truncated value with size 32 to match size of target' \
|
|
|
|
|
| grep -v 'behaves as a Local Parameter Declaration because the module has a Module Parameter Port List' \
|
|
|
|
|
> $*.warnings
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2016-05-17 14:17:39 +00:00
|
|
|
stein.rbf: pll96.v stein.v stein_core.v stein_pha.v stein_channel_map.v \
|
2014-03-06 09:53:34 +00:00
|
|
|
stein_frontend.v stein_middleend.v \
|
2016-05-17 14:17:39 +00:00
|
|
|
stein_ix_controller.v clk_domain_switch.v stein_l1_counter.v stein_l2trig.v \
|
|
|
|
|
stein_adc_controller.v leadingbit.v countbits.v stein_ix_acquire_switch.v \
|
|
|
|
|
barrel.v priority_encoder.v adc128s102.v \
|
|
|
|
|
memport.v backend.v message.v uart.v por.v ix.v testpulser.v \
|
2013-06-28 10:34:02 +00:00
|
|
|
l3code.v crc.v msg_regs.v fifo.v hamming.v mem.v \
|
|
|
|
|
counters.v ppsschedule.v pha.v eeprom.v l3registerfile.v \
|
|
|
|
|
l3/processor.v l3/l3regfifo.v l3/adder.v l3/adderi.v l3/mult.v \
|
|
|
|
|
l3/log7to4.v l3/trim.v l3/bitrange.v l3/cmp.v \
|
2016-05-17 14:17:39 +00:00
|
|
|
encode/compression.v encode/encode.v itof.v log2by8.v opheater.v sfilter.v \
|
2013-07-05 14:22:23 +00:00
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
stein_test.rbf: pll96.v stein.v stein_core.v stein_pha.v \
|
2014-03-06 09:53:34 +00:00
|
|
|
stein_frontend.v stein_middleend.v \
|
2013-07-05 14:22:23 +00:00
|
|
|
memport.v backend.v message.v uart.v \
|
|
|
|
|
l3code.v crc.v msg_regs.v fifo.v hamming.v mem.v \
|
|
|
|
|
counters.v ppsschedule.v pha.v eeprom.v l3registerfile.v \
|
|
|
|
|
l3/processor.v l3/l3regfifo.v l3/adder.v l3/adderi.v l3/mult.v \
|
|
|
|
|
l3/log7to4.v l3/trim.v l3/bitrange.v l3/cmp.v \
|
2014-03-06 09:53:34 +00:00
|
|
|
encode/compression.v encode/encode.v itof.v sfilter.v \
|
|
|
|
|
clk_domain_switch.v stein_ix_controller.v stein_l1_counter.v stein_l2trig.v \
|
|
|
|
|
stein_adc_controller.v leadingbit.v stein_ix_acquire_switch.v countbits.v \
|
|
|
|
|
barrel.v priority_encoder.v
|
2013-07-05 14:22:23 +00:00
|
|
|
rm -f stein.rbf
|
2014-05-05 12:20:10 +00:00
|
|
|
$(MAKE) stein_MAPDEFS=TRIG_NOINVERT=1 stein.rbf
|
2013-07-05 14:22:23 +00:00
|
|
|
mv stein.rbf $@
|
2014-05-05 12:20:10 +00:00
|
|
|
mv stein.warnings stein_test.warnings
|
2012-12-03 10:58:32 +00:00
|
|
|
|
2015-03-19 11:17:38 +00:00
|
|
|
stein_ix_controller_acquire.vvp: stein_ix_controller.v stein_adc_controller.v stein_l2trig.v countbits.v memWxActel.v RAM64K36_sim.v mem36x128.v mem.v hamming.v sfilter.v barrel.v priority_encoder.v adc128s102.v idefx.v ix.v stein_channel_map.v
|
2014-11-21 22:44:10 +00:00
|
|
|
stein_ix_controller_acquire_FLAGS = -DIX_ACQUIRE_TEST -DTARGET_ACTEL -six_acquire_test -DARxSTREAM
|
2013-05-06 15:36:16 +00:00
|
|
|
|
2013-08-19 21:58:04 +00:00
|
|
|
stein_adc_controller.vvp: stein_adc_controller.v barrel.v priority_encoder.v adc128s102.v
|
|
|
|
|
stein_adc_controller_FLAGS = -DSTEIN_ADC_CONTROLLER_TEST -sstein_adc_controller_test
|
2013-05-06 15:36:16 +00:00
|
|
|
|
2013-08-13 15:01:17 +00:00
|
|
|
stein_ix_controller_temp.vvp: stein_ix_controller.v stein_adc_controller.v sfilter.v barrel.v priority_encoder.v adc128s102.v
|
2013-07-25 07:26:41 +00:00
|
|
|
stein_ix_controller_temp_FLAGS = -DIX_TEMP_TEST -six_temp_test
|
2013-06-10 11:10:17 +00:00
|
|
|
|
2014-10-08 11:41:40 +00:00
|
|
|
stein_ix_controller_sc.vvp: stein_ix_controller.v leadingbit.v idefx.v ix.v
|
2013-07-25 14:50:59 +00:00
|
|
|
stein_ix_controller_sc_FLAGS = -DIX_SC_SCHEDULER_TEST -six_sc_scheduler_test
|
2013-07-17 09:44:18 +00:00
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
stein_hk.vvp: stein_core.v stein_pha.v stein_ix_controller.v stein_adc_controller.v sfilter.v barrel.v priority_encoder.v countbits.v adc128s102.v
|
2013-08-05 13:40:38 +00:00
|
|
|
stein_hk_FLAGS = -DSTEIN_HK_TEST -sstein_hk_test
|
2013-07-17 09:44:18 +00:00
|
|
|
|
2013-07-25 14:50:59 +00:00
|
|
|
stein_ix_controller_reset.vvp: stein_ix_controller.v
|
|
|
|
|
stein_ix_controller_reset_FLAGS = -DIX_RESET_TEST -six_reset_test
|
|
|
|
|
|
2014-01-07 17:37:45 +00:00
|
|
|
stein_ix_acquire_switch.vvp: stein_ix_acquire_switch.v stein_ix_controller.v stein_adc_controller.v stein_l2trig.v countbits.v memWxActel.v RAM64K36_sim.v mem36x128.v mem.v hamming.v sfilter.v barrel.v priority_encoder.v clk_domain_switch.v adc128s102.v
|
2013-08-01 19:04:02 +00:00
|
|
|
stein_ix_acquire_switch_FLAGS = -DIX_ACQUIRE_SWITCH_TEST -DINFERRED_SRAM -DM24MHZ -six_acquire_switch_test
|
|
|
|
|
|
|
|
|
|
clk_domain_switch.vvp: clk_domain_switch.v
|
|
|
|
|
clk_domain_switch_FLAGS = -DCLK_DOMAIN_SWITCH_TEST -DM24MHZ -sclk_domain_switch_test
|
|
|
|
|
|
2014-01-07 17:37:45 +00:00
|
|
|
stein_frontend.vvp: stein_frontend.v stein_adc_controller.v stein_ix_controller.v adc128s102.v barrel.v priority_encoder.v stein_l1_counter.v stein_l2trig.v counters.v countbits.v leadingbit.v idefx.v
|
2013-09-25 18:29:22 +00:00
|
|
|
stein_frontend_FLAGS = -DSTEIN_FRONTEND_TEST -sstein_frontend_test
|
|
|
|
|
|
|
|
|
|
idefx.vvp: idefx.v
|
|
|
|
|
idefx_FLAGS = -DIDEFX_TEST -sidefx_test
|
|
|
|
|
|
2014-01-07 18:33:59 +00:00
|
|
|
stein_l2trig.vvp: stein_l2trig.v countbits.v
|
|
|
|
|
stein_l2trig_FLAGS = -DSTEIN_L2TRIG_TEST -sstein_l2trig_test
|
|
|
|
|
|
2014-01-09 22:46:19 +00:00
|
|
|
stein_middleend.vvp: stein_middleend.v stein_ix_controller.v stein_l1_counter.v countbits.v leadingbit.v idefx.v counters.v
|
2014-02-11 16:31:12 +00:00
|
|
|
stein_middleend_FLAGS = -DSTEIN_MIDDLEEND_TEST -sstein_middleend_test
|
|
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
stein_sc_write.vvp: stein_core.v stein_pha.v
|
2014-02-11 16:31:12 +00:00
|
|
|
stein_sc_write_FLAGS = -DSC_WRITE_TEST -ssc_write_test
|
|
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
stein_package_maker.vvp: stein_pha.v stein_ix_acquire_switch.v stein_ix_controller.v stein_adc_controller.v stein_l2trig.v countbits.v memWxActel.v RAM64K36_sim.v mem36x128.v mem.v hamming.v sfilter.v barrel.v priority_encoder.v clk_domain_switch.v adc128s102.v
|
2014-08-27 08:41:30 +00:00
|
|
|
stein_package_maker_FLAGS = -DSTEIN_PACKAGE_MAKER_TEST -DINFERRED_SRAM -DM24MHZ -sstein_package_maker_test
|
|
|
|
|
|
2015-03-09 20:10:13 +00:00
|
|
|
i14tof11.vvp: stein_core.v
|
2014-08-27 08:41:30 +00:00
|
|
|
i14tof11_FLAGS = -DI14TOF11_TEST -si14tof11_test
|
|
|
|
|
|
2014-02-11 20:24:52 +00:00
|
|
|
%.l3v: %.l3
|
|
|
|
|
$(MAKE) -C ../../sirena/altera ../../stein/altera/$@
|
2014-02-12 11:28:36 +00:00
|
|
|
|