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
TOP=../../../
RED='\033[7;31m'
NC='\033[0m' # No Color
if [ -z "$1" ]
then
vlib MCCU
vmap work $PWD/MCCU
vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv
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"
else
vlib MCCU
vmap work $PWD/MCCU
vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/*.sv $TOP/submodules/seu_ip/way3*.sv tb_MCCU.sv
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
......@@ -30,6 +30,7 @@ module tb_MCCU();
parameter TB_WEIGHTS_WIDTH = 8;
parameter TB_N_CORES = 4;
parameter TB_CORE_EVENTS = 2;
parameter FT = 0;
//***Signals***
reg tb_clk_i ;
reg tb_rstn_i ;
......@@ -49,6 +50,7 @@ reg tb_fail = 0;
.DATA_WIDTH(TB_DATA_WIDTH),
.WEIGHTS_WIDTH(TB_WEIGHTS_WIDTH),
.N_CORES(TB_N_CORES),
.FT(FT),
.CORE_EVENTS(TB_CORE_EVENTS)
)
dut_MCCU(
......@@ -60,6 +62,8 @@ reg tb_fail = 0;
.update_quota_i(tb_update_quota_i),
.quota_o (tb_quota_o),
.events_weights_i(tb_events_weights_i),
.intr_FT1_o(),
.intr_FT2_o(),
.interruption_quota_o(tb_interruption_quota_o)
);
......@@ -455,6 +459,8 @@ task automatic init_sim;
tb_test_name={"t_weigths_ev_quota(10,0,0,0);"};
test_weigths_ev_quota(10,0,0,0);
$display("FT = %d",FT);
$finish;
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