URL
https://opencores.org/ocsvn/theia_gpu/theia_gpu/trunk
Subversion Repositories theia_gpu
Compare Revisions
- This comparison shows the changes necessary to convert path
/theia_gpu/branches/icarus_version
- from Rev 176 to Rev 177
- ↔ Reverse comparison
Rev 176 → Rev 177
/simulation/Makefile
11,6 → 11,7
#iverilog CONFIG |
VERILOG_CMD = iverilog |
GPUCORES = 4 |
GPUMEMBANKS = $(GPUCORES) |
#VERILOG_FLAGS = |
|
# VVP (iverilog runtime engine) |
52,7 → 53,7
|
|
compile : testbench_check |
perl $(GPUCONFIGURATIONSCRIPT) $(GPUCORES) |
perl $(GPUCONFIGURATIONSCRIPT) $(GPUCORES) $(GPUMEMBANKS) |
|
cp $(SOURCEPATH)/aDefinitions.v . |
ifeq ($(strip $(DEBUG_CORE_ID)),) |
75,6 → 76,4
$(WAVEFORM_VIEWER) $(SIMDIR)/$(TESTBENCH).$(DUMPTYPE) |
|
clean : |
rm -f *.mem |
rm -f *.ppm |
rm -f *.log |
rm *.{mem,ppm,log} |
/scripts/configure_gpu.pl
20,8 → 20,19
|
use Tie::File; |
$NumberOfCores = $ARGV[0]; |
$NumberOfBanks = $ARGV[1]; |
|
|
|
die "\nusage:\nconfigure_gpu.pl number_of_cores width height\n\n" if (not defined $NumberOfCores ); |
|
|
if (not defined $NumberOfBanks) |
{ |
$NumberOfBanks = $NumberOfCores; |
print "Number of TMEM banks not specified, making default to Number of execution cores ($NumberOfCores)\n"; |
} |
|
$DefsPath = "../rtl/aDefinitions.v"; |
$TopPath = "../rtl/Theia.v"; |
$TestBenchPath = "../rtl/TestBench_THEIA.v"; |
36,7 → 47,9
|
print |
" |
Applying configuration for $NumberOfCores cores |
Applying configuration for: |
$NumberOfCores execution cores |
$NumberOfBanks TMEM banks |
"; |
|
#------------------------------------------------------------------ |
56,10 → 69,12
foreach (@array) |
{ |
s/define MAX_CORES .*(\/\/.*)/define MAX_CORES $NumberOfCores \t\t$1/; |
s/define MAX_TMEM_BANKS .*(\/\/.*)/define MAX_TMEM_BANKS $NumberOfCores \t\t$1/; |
$MaxBits = log( $NumberOfCores ) / log(2); |
s/define MAX_CORE_BITS .*(\/\/.*)/define MAX_CORE_BITS $MaxBits \t\t$1/; |
s/define MAX_TMEM_BANKS .*(\/\/.*)/define MAX_TMEM_BANKS $NumberOfBanks \t\t$1/; |
$MaxCoreBits = log( $NumberOfCores ) / log(2); |
$MaxBankBits = log( $NumberOfBanks ) / log(2); |
s/define MAX_CORE_BITS .*(\/\/.*)/define MAX_CORE_BITS $MaxCoreBits \t\t$1/; |
s/define SELECT_ALL_CORES .*(\/\/.*)/$SELECT_ALL_CORES \t\t$1/; |
s/define MAX_TMEM_BITS .*(\/\/.*)/define MAX_TMEM_BITS $MaxBankBits \t\t$1/; |
|
} |
untie @array; |