I think this should do what you want. (Steps 3+4 are required to make modelsim testbenches work as well).
1. In the import directory created by DSPB (DSPBuilder_<modelname>_import) when you compile (which will fail), create a file called aaa_add.tcl (alphabetically first so you can guarantee it gets run before others).
2. Add the following lines to that file:
set quartus_dir $::env(QUARTUS_ROOTDIR)
if {
set dspba_hdl_dir $::env(DSPBA_HDL_DIR)
} else {
set dspba_hdl_dir $quartus_dir/dspba/Libraries
}
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/hcc_package.vhd
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/math_package.vhd
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/hcc_implementation.vhd
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/math_implementation.vhd
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/fpc_library_package.vhd
set_global_assignment -name VHDL_FILE $dspba_hdl_dir/vhdl/fpc/fpc_library.vhd
3. Create another file called aaa_add_msim.tcl.
4. Add the following lines:
set base_dir "<path to your DSPBA rtl directory>"
set quartus_dir $::env(QUARTUS_ROOTDIR)
if {
set dspba_hdl_dir $::env(DSPBA_HDL_DIR)
} else {
set dspba_hdl_dir $quartus_dir/dspba/Libraries
}
file delete -force $base_dir/fpc
vlib fpc
vmap fpc $base_dir/fpc
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/hcc_package.vhd"
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/math_package.vhd"
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/hcc_implementation.vhd"
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/math_implementation.vhd"
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/fpc_library_package.vhd"
vcom -quiet -93 -work $base_dir/fpc "$dspba_hdl_dir/vhdl/fpc/fpc_library.vhd"
Filling in <path to your DSPBA rtl directory> as appropriate.