Commit c00c858e authored by GuillemCabo's avatar GuillemCabo Committed by Guillem
Browse files

add Info to questa ci; add FT/NFT runs to MCCU

parent 3d06576e
#$1 #$1
TOP=../../../ TOP=../../../
RED='\033[7;31m'
NC='\033[0m' # No Color
if [ -z "$1" ] if [ -z "$1" ]
then then
vlib MCCU vlib MCCU
vmap work $PWD/MCCU vmap work $PWD/MCCU
vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv
vmake MCCU/ > Makefile vmake MCCU/ > Makefile
printf "${RED}WARNING: Check if you want Fault Tolerance active or not${RED}${NC}\n"
printf "${RED}To enable FT add -gFT=1 after vsim${RED}${NC}\n"
vsim work.tb_MCCU -do "view wave -new" -do "do wave.do" -do "run -all" vsim work.tb_MCCU -do "view wave -new" -do "do wave.do" -do "run -all"
else else
vlib MCCU vlib MCCU
vmap work $PWD/MCCU vmap work $PWD/MCCU
vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv
vmake MCCU/ > Makefile vmake MCCU/ > Makefile
vsim work.tb_MCCU $1 -do "do save_wave.do" echo "#INFO# Test Default IP "
vsim -gFT=0 work.tb_MCCU $1 -do "do save_wave.do"
echo "#INFO# Test FT IP"
vsim -gFT=1 work.tb_MCCU $1 -do "do save_wave.do"
fi fi
...@@ -30,6 +30,7 @@ module tb_MCCU(); ...@@ -30,6 +30,7 @@ module tb_MCCU();
parameter TB_WEIGHTS_WIDTH = 8; parameter TB_WEIGHTS_WIDTH = 8;
parameter TB_N_CORES = 4; parameter TB_N_CORES = 4;
parameter TB_CORE_EVENTS = 2; parameter TB_CORE_EVENTS = 2;
parameter FT = 0;
//***Signals*** //***Signals***
reg tb_clk_i ; reg tb_clk_i ;
reg tb_rstn_i ; reg tb_rstn_i ;
...@@ -49,6 +50,7 @@ reg tb_fail = 0; ...@@ -49,6 +50,7 @@ reg tb_fail = 0;
.DATA_WIDTH(TB_DATA_WIDTH), .DATA_WIDTH(TB_DATA_WIDTH),
.WEIGHTS_WIDTH(TB_WEIGHTS_WIDTH), .WEIGHTS_WIDTH(TB_WEIGHTS_WIDTH),
.N_CORES(TB_N_CORES), .N_CORES(TB_N_CORES),
.FT(FT),
.CORE_EVENTS(TB_CORE_EVENTS) .CORE_EVENTS(TB_CORE_EVENTS)
) )
dut_MCCU( dut_MCCU(
...@@ -60,6 +62,8 @@ reg tb_fail = 0; ...@@ -60,6 +62,8 @@ reg tb_fail = 0;
.update_quota_i(tb_update_quota_i), .update_quota_i(tb_update_quota_i),
.quota_o (tb_quota_o), .quota_o (tb_quota_o),
.events_weights_i(tb_events_weights_i), .events_weights_i(tb_events_weights_i),
.intr_FT1_o(),
.intr_FT2_o(),
.interruption_quota_o(tb_interruption_quota_o) .interruption_quota_o(tb_interruption_quota_o)
); );
...@@ -455,6 +459,8 @@ task automatic init_sim; ...@@ -455,6 +459,8 @@ task automatic init_sim;
tb_test_name={"t_weigths_ev_quota(10,0,0,0);"}; tb_test_name={"t_weigths_ev_quota(10,0,0,0);"};
test_weigths_ev_quota(10,0,0,0); test_weigths_ev_quota(10,0,0,0);
$display("FT = %d",FT);
$finish; $finish;
end end
/* /*
......
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