Commit 1443155c authored by Gaurav Kukreja's avatar Gaurav Kukreja

Instrumented_Power for adpcm and sieve

Signed-off-by: Gaurav Kukreja's avatarGaurav Kukreja <gaurav@gauravk.in>
parent 4346d821
include ../../../../cache_simulator/Makefile.macros
include ../../../../branch_predictor/Makefile.macros
include ../../../../power_estimator/Makefile.macros
CC = gcc
CFLAGS = -O2 -std=c99
INCLUDE = -I$(CACHESIM_HEADERS) -I$(BPRED_HEADERS) -I$(POWEREST_HEADERS)
LIB = -L$(CACHESIM_LIB) -L$(BPRED_LIB) -L$(POWEREST_LIB)
APP_SOURCES = my_ctop_IR.c adpcm_IR.c
all: my_ctop_IR.out
my_ctop_IR.out: $(APP_SOURCES)
$(CC) $(CFLAGS) $(INCLUDE) $(LIB) -o $@ $^ -lcacheSim -lbranchPred -lpowerEst
check: my_ctop_IR.out
export LD_LIBRARY_PATH=$(CACHESIM_LIB)
./my_ctop_IR.out
clean:
rm -rf *.o my_ctop_IR.out
/*
** adpcm.h - include file for adpcm coder.
**
** Version 1.0, 7-Jul-92.
*/
struct adpcm_state {
short valprev; /* Previous output value */
char index; /* Index into stepsize table */
};
#ifdef __STDC__
#define ARGS(x) x
#else
#define ARGS(x) ()
#endif
void adpcm_coder (short indata[], unsigned long indata_addr, char outdata[], unsigned long outdata_addr, int len, struct adpcm_state *state, unsigned long state_addr);
This diff is collapsed.
# VoLTE plot script
# Author: Bo Wang
#set terminal windows
set key off outside
#set size 1.0, 1.0
#set terminal png enhanced giant size 800, 600
set terminal pdfcairo enhanced size 4, 3 lw 1 font "Helvetica, 6"
#set terminal pdf enhanced "Helvetica, 12"
#set terminal postscript eps color defaultplex enhanced "Helvetica, 12"
#set terminal postscript eps color defaultplex enhanced font "Times New Roman, 12"
set xlabel "CPU Cycles (million)" offset 0.0, 0.3
#set ylabel "Battery Current [mA]" offset 0.0, 0.0
set ylabel "Power Consumption (mW)" offset 1.0, 0.0
#set yrange [0 : 1.8]
#set yrange [0 : 1]
set rmargin 4
set grid
set output "power_trace.pdf"
#set title "VoLTE Power Consumption"
#set title "Power Consumption"
#plot "C:/Users/bwang33/Documents/Visual Studio 2010/Projects/Maestro/Projects/VoLTE_Integration/Debug/T.PowerMonitor.dat" using ($1/1e6):($2/240) title "VoLTE" with steps
plot "./power_trace_100000.dat" using ($2/1e6):3 with steps
#plot "C:/Users/bwang33/Desktop/VoLTE/Binary_Data/Un-Optimized/T.PowerMonitor_B5_C1_RX2TRX.dat" using ($1/1e6):($2/230) title "VoLTE" with steps
#set output
#unset output
#set terminal wxt
#exit
This diff is collapsed.
This diff is collapsed.
// unsigned int ARR_SIZE = 13305601;
unsigned int ARR_SIZE = 684433;
unsigned long ARR_SIZE_addr = 0xaa0;
This source diff could not be displayed because it is too large. You can view the blob instead.
include ../../../../cache_simulator/Makefile.macros
include ../../../../branch_predictor/Makefile.macros
include ../../../../power_estimator/Makefile.macros
CC = gcc
CFLAGS = -O2 -std=c99
INCLUDE = -I$(CACHESIM_HEADERS) -I$(BPRED_HEADERS) -I$(POWEREST_HEADERS)
LIB = -L$(CACHESIM_LIB) -L$(BPRED_LIB) -L$(POWEREST_LIB)
APP_SOURCES = erat_sieve_no_print_IR.c
all: sieve.out
sieve.out: $(APP_SOURCES)
$(CC) $(CFLAGS) $(INCLUDE) $(LIB) -o $@ $^ -lcacheSim -lbranchPred -lpowerEst
clean:
rm -rf *.o cacheSimTest
for f in $(SOURCES); do \
rm -rf $$f; \
done
# VoLTE plot script
# Author: Bo Wang
#set terminal windows
set key off outside
#set size 1.0, 1.0
#set terminal png enhanced giant size 800, 600
set terminal pdfcairo enhanced size 4, 3 lw 1 font "Helvetica, 6"
#set terminal pdf enhanced "Helvetica, 12"
#set terminal postscript eps color defaultplex enhanced "Helvetica, 12"
#set terminal postscript eps color defaultplex enhanced font "Times New Roman, 12"
set xlabel "CPU Cycles (million)" offset 0.0, 0.3
#set ylabel "Battery Current [mA]" offset 0.0, 0.0
set ylabel "Power Consumption (mW)" offset 1.0, 0.0
#set yrange [0 : 1.8]
#set yrange [0 : 1]
set rmargin 4
set grid
set output "power_trace.pdf"
#set title "VoLTE Power Consumption"
#set title "Power Consumption"
#plot "C:/Users/bwang33/Documents/Visual Studio 2010/Projects/Maestro/Projects/VoLTE_Integration/Debug/T.PowerMonitor.dat" using ($1/1e6):($2/240) title "VoLTE" with steps
plot "./power_trace_100000.dat" using ($2/1e6):3 with steps
#plot "C:/Users/bwang33/Desktop/VoLTE/Binary_Data/Un-Optimized/T.PowerMonitor_B5_C1_RX2TRX.dat" using ($1/1e6):($2/230) title "VoLTE" with steps
#set output
#unset output
#set terminal wxt
#exit
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment