diff --git a/CPU9bits_tb_behav.wcfg b/CPU9bits_tb_behav.wcfg index 5f2fe37..d0808e6 100644 --- a/CPU9bits_tb_behav.wcfg +++ b/CPU9bits_tb_behav.wcfg @@ -12,14 +12,14 @@ - - + + - + - + Program Counter label @@ -47,77 +47,10 @@ UNSIGNEDDECRADIX - - Register File - label - - - clk - clk - - - reset - reset - - - En - En - - - write_index[1:0] - write_index[1:0] - - - op0_idx[1:0] - op0_idx[1:0] - - - op1_idx[1:0] - op1_idx[1:0] - - - write_data[8:0] - write_data[8:0] - SIGNEDDECRADIX - - - op0[8:0] - op0[8:0] - SIGNEDDECRADIX - - - op1[8:0] - op1[8:0] - SIGNEDDECRADIX - - - decOut[3:0] - decOut[3:0] - - - r0_out[8:0] - r0_out[8:0] - SIGNEDDECRADIX - - - r1_out[8:0] - r1_out[8:0] - SIGNEDDECRADIX - - - r2_out[8:0] - r2_out[8:0] - SIGNEDDECRADIX - - - r3_out[8:0] - r3_out[8:0] - SIGNEDDECRADIX - - Fetch Unit label + clk clk @@ -133,6 +66,7 @@ AddrIn[8:0] AddrIn[8:0] + AddrOut[8:0] @@ -170,6 +104,7 @@ FU[2:0] FU[2:0] + bank[1:0] @@ -204,94 +139,6 @@ js - - ALU - label - - opcode[3:0] - opcode[3:0] - - - operand0[8:0] - operand0[8:0] - - - operand1[8:0] - operand1[8:0] - - - result[8:0] - result[8:0] - - - result_A[8:0] - result_A[8:0] - - - result_B[8:0] - result_B[8:0] - - - result_C[8:0] - result_C[8:0] - - - result_D[8:0] - result_D[8:0] - - - result_E[8:0] - result_E[8:0] - - - result_F[8:0] - result_F[8:0] - - - result_G[8:0] - result_G[8:0] - - - result_H[8:0] - result_H[8:0] - - - result_I[8:0] - result_I[8:0] - - - result_J[8:0] - result_J[8:0] - - - result_K[8:0] - result_K[8:0] - - - result_L[8:0] - result_L[8:0] - - - result_M[8:0] - result_M[8:0] - - - result_N[8:0] - result_N[8:0] - - - result_O[8:0] - result_O[8:0] - - - result_P[8:0] - result_P[8:0] - - - cout - cout - - Divider label @@ -314,544 +161,59 @@ memory[100:0][8:0] memory[100:0][8:0] - - - Data Memory - label - - + + switch + switch + + + A[8:0] + A[8:0] + + + B[8:0] + B[8:0] + + + out[8:0] + out[8:0] + + + switch + switch + + + A + A + + + B + B + + + out + out + + clk clk - - writeEnable - writeEnable + + reset + reset - - address[8:0] - address[8:0] - UNSIGNEDDECRADIX + + En + En - - writeData[8:0] - writeData[8:0] - SIGNEDDECRADIX - - - readData[8:0] - readData[8:0] - SIGNEDDECRADIX - - - memory[100:0][8:0] - memory[100:0][8:0] + + Din[50:0] + Din[50:0] + + + + Dout[50:0] + Dout[50:0] - SIGNEDDECRADIX - - [100][8:0] - [100][8:0] - SIGNEDDECRADIX - - - [99][8:0] - [99][8:0] - SIGNEDDECRADIX - - - [98][8:0] - [98][8:0] - SIGNEDDECRADIX - - - [97][8:0] - [97][8:0] - SIGNEDDECRADIX - - - [96][8:0] - [96][8:0] - SIGNEDDECRADIX - - - [95][8:0] - [95][8:0] - SIGNEDDECRADIX - - - [94][8:0] - [94][8:0] - SIGNEDDECRADIX - - - [93][8:0] - [93][8:0] - SIGNEDDECRADIX - - - [92][8:0] - [92][8:0] - SIGNEDDECRADIX - - - [91][8:0] - [91][8:0] - SIGNEDDECRADIX - - - [90][8:0] - [90][8:0] - SIGNEDDECRADIX - - - [89][8:0] - [89][8:0] - SIGNEDDECRADIX - - - [88][8:0] - [88][8:0] - SIGNEDDECRADIX - - - [87][8:0] - [87][8:0] - SIGNEDDECRADIX - - - [86][8:0] - [86][8:0] - SIGNEDDECRADIX - - - [85][8:0] - [85][8:0] - SIGNEDDECRADIX - - - [84][8:0] - [84][8:0] - SIGNEDDECRADIX - - - [83][8:0] - [83][8:0] - SIGNEDDECRADIX - - - [82][8:0] - [82][8:0] - SIGNEDDECRADIX - - - [81][8:0] - [81][8:0] - SIGNEDDECRADIX - - - [80][8:0] - [80][8:0] - SIGNEDDECRADIX - - - [79][8:0] - [79][8:0] - SIGNEDDECRADIX - - - [78][8:0] - [78][8:0] - SIGNEDDECRADIX - - - [77][8:0] - [77][8:0] - SIGNEDDECRADIX - - - [76][8:0] - [76][8:0] - SIGNEDDECRADIX - - - [75][8:0] - [75][8:0] - SIGNEDDECRADIX - - - [74][8:0] - [74][8:0] - SIGNEDDECRADIX - - - [73][8:0] - [73][8:0] - SIGNEDDECRADIX - - - [72][8:0] - [72][8:0] - SIGNEDDECRADIX - - - [71][8:0] - [71][8:0] - SIGNEDDECRADIX - - - [70][8:0] - [70][8:0] - SIGNEDDECRADIX - - - [69][8:0] - [69][8:0] - SIGNEDDECRADIX - - - [68][8:0] - [68][8:0] - SIGNEDDECRADIX - - - [67][8:0] - [67][8:0] - SIGNEDDECRADIX - - - [66][8:0] - [66][8:0] - SIGNEDDECRADIX - - - [65][8:0] - [65][8:0] - SIGNEDDECRADIX - - - [64][8:0] - [64][8:0] - SIGNEDDECRADIX - - - [63][8:0] - [63][8:0] - SIGNEDDECRADIX - - - [62][8:0] - [62][8:0] - SIGNEDDECRADIX - - - [61][8:0] - [61][8:0] - SIGNEDDECRADIX - - - [60][8:0] - [60][8:0] - SIGNEDDECRADIX - - - [59][8:0] - [59][8:0] - SIGNEDDECRADIX - - - [58][8:0] - [58][8:0] - SIGNEDDECRADIX - - - [57][8:0] - [57][8:0] - SIGNEDDECRADIX - - - [56][8:0] - [56][8:0] - SIGNEDDECRADIX - - - [55][8:0] - [55][8:0] - SIGNEDDECRADIX - - - [54][8:0] - [54][8:0] - SIGNEDDECRADIX - - - [53][8:0] - [53][8:0] - SIGNEDDECRADIX - - - [52][8:0] - [52][8:0] - SIGNEDDECRADIX - - - [51][8:0] - [51][8:0] - SIGNEDDECRADIX - - - [50][8:0] - [50][8:0] - SIGNEDDECRADIX - - - [49][8:0] - [49][8:0] - SIGNEDDECRADIX - - - [48][8:0] - [48][8:0] - SIGNEDDECRADIX - - - [47][8:0] - [47][8:0] - SIGNEDDECRADIX - - - [46][8:0] - [46][8:0] - SIGNEDDECRADIX - - - [45][8:0] - [45][8:0] - SIGNEDDECRADIX - - - [44][8:0] - [44][8:0] - SIGNEDDECRADIX - - - [43][8:0] - [43][8:0] - SIGNEDDECRADIX - - - [42][8:0] - [42][8:0] - SIGNEDDECRADIX - - - [41][8:0] - [41][8:0] - SIGNEDDECRADIX - - - [40][8:0] - [40][8:0] - SIGNEDDECRADIX - - - [39][8:0] - [39][8:0] - SIGNEDDECRADIX - - - [38][8:0] - [38][8:0] - SIGNEDDECRADIX - - - [37][8:0] - [37][8:0] - SIGNEDDECRADIX - - - [36][8:0] - [36][8:0] - SIGNEDDECRADIX - - - [35][8:0] - [35][8:0] - SIGNEDDECRADIX - - - [34][8:0] - [34][8:0] - SIGNEDDECRADIX - - - [33][8:0] - [33][8:0] - SIGNEDDECRADIX - - - [32][8:0] - [32][8:0] - SIGNEDDECRADIX - - - [31][8:0] - [31][8:0] - SIGNEDDECRADIX - - - [30][8:0] - [30][8:0] - SIGNEDDECRADIX - - - [29][8:0] - [29][8:0] - SIGNEDDECRADIX - - - [28][8:0] - [28][8:0] - SIGNEDDECRADIX - - - [27][8:0] - [27][8:0] - SIGNEDDECRADIX - - - [26][8:0] - [26][8:0] - SIGNEDDECRADIX - - - [25][8:0] - [25][8:0] - SIGNEDDECRADIX - - - [24][8:0] - [24][8:0] - SIGNEDDECRADIX - - - [23][8:0] - [23][8:0] - SIGNEDDECRADIX - - - [22][8:0] - [22][8:0] - SIGNEDDECRADIX - - - [21][8:0] - [21][8:0] - SIGNEDDECRADIX - - - [20][8:0] - [20][8:0] - SIGNEDDECRADIX - - - [19][8:0] - [19][8:0] - SIGNEDDECRADIX - - - [18][8:0] - [18][8:0] - SIGNEDDECRADIX - - - [17][8:0] - [17][8:0] - SIGNEDDECRADIX - - - [16][8:0] - [16][8:0] - SIGNEDDECRADIX - - - [15][8:0] - [15][8:0] - SIGNEDDECRADIX - - - [14][8:0] - [14][8:0] - SIGNEDDECRADIX - - - [13][8:0] - [13][8:0] - SIGNEDDECRADIX - - - [12][8:0] - [12][8:0] - SIGNEDDECRADIX - - - [11][8:0] - [11][8:0] - SIGNEDDECRADIX - - - [10][8:0] - [10][8:0] - SIGNEDDECRADIX - - - [9][8:0] - [9][8:0] - SIGNEDDECRADIX - - - [8][8:0] - [8][8:0] - SIGNEDDECRADIX - - - [7][8:0] - [7][8:0] - SIGNEDDECRADIX - - - [6][8:0] - [6][8:0] - SIGNEDDECRADIX - - - [5][8:0] - [5][8:0] - SIGNEDDECRADIX - - - [4][8:0] - [4][8:0] - SIGNEDDECRADIX - - - [3][8:0] - [3][8:0] - SIGNEDDECRADIX - - - [2][8:0] - [2][8:0] - SIGNEDDECRADIX - - - [1][8:0] - [1][8:0] - SIGNEDDECRADIX - - - [0][8:0] - [0][8:0] - SIGNEDDECRADIX - diff --git a/lab2CA.cache/wt/webtalk_pa.xml b/lab2CA.cache/wt/webtalk_pa.xml index ef41784..7da5dff 100644 --- a/lab2CA.cache/wt/webtalk_pa.xml +++ b/lab2CA.cache/wt/webtalk_pa.xml @@ -3,7 +3,7 @@ - +
@@ -18,7 +18,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -61,7 +61,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -69,7 +69,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -81,7 +81,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -91,12 +91,12 @@ This means code written to parse this file will need to be revisited each subseq - + - + @@ -125,7 +125,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -188,7 +188,7 @@ This means code written to parse this file will need to be revisited each subseq - + @@ -203,9 +203,9 @@ This means code written to parse this file will need to be revisited each subseq - + - +
diff --git a/lab2CA.runs/synth_1/gen_run.xml b/lab2CA.runs/synth_1/gen_run.xml index 5b61254..46bfdca 100644 --- a/lab2CA.runs/synth_1/gen_run.xml +++ b/lab2CA.runs/synth_1/gen_run.xml @@ -1,14 +1,11 @@ - - - diff --git a/lab2CA.sim/sim_1/behav/xsim/webtalk.jou b/lab2CA.sim/sim_1/behav/xsim/webtalk.jou index 330f588..a2bcd83 100644 --- a/lab2CA.sim/sim_1/behav/xsim/webtalk.jou +++ b/lab2CA.sim/sim_1/behav/xsim/webtalk.jou @@ -2,11 +2,11 @@ # Webtalk v2018.3 (64-bit) # SW Build 2405991 on Thu Dec 6 23:38:27 MST 2018 # IP Build 2404404 on Fri Dec 7 01:43:56 MST 2018 -# Start of session at: Wed Apr 10 10:36:59 2019 -# Process ID: 20220 -# Current directory: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim -# Command line: wbtcv.exe -mode batch -source C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl -notrace -# Log file: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/webtalk.log -# Journal file: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim\webtalk.jou +# Start of session at: Thu Apr 11 16:19:32 2019 +# Process ID: 16612 +# Current directory: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim +# Command line: wbtcv.exe -mode batch -source C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl -notrace +# Log file: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/webtalk.log +# Journal file: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim\webtalk.jou #----------------------------------------------------------- -source C:/REPOSITORIES/Educational/Western -notrace +source C:/Users/JoseIgnacio/CA -notrace diff --git a/lab2CA.sim/sim_1/behav/xsim/webtalk_16352.backup.jou b/lab2CA.sim/sim_1/behav/xsim/webtalk_16352.backup.jou deleted file mode 100644 index ebcc5c7..0000000 --- a/lab2CA.sim/sim_1/behav/xsim/webtalk_16352.backup.jou +++ /dev/null @@ -1,12 +0,0 @@ -#----------------------------------------------------------- -# Webtalk v2018.3 (64-bit) -# SW Build 2405991 on Thu Dec 6 23:38:27 MST 2018 -# IP Build 2404404 on Fri Dec 7 01:43:56 MST 2018 -# Start of session at: Sat Apr 6 14:28:59 2019 -# Process ID: 16352 -# Current directory: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim -# Command line: wbtcv.exe -mode batch -source C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl -notrace -# Log file: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/webtalk.log -# Journal file: C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim\webtalk.jou -#----------------------------------------------------------- -source C:/REPOSITORIES/Educational/Western -notrace diff --git a/lab2CA.sim/sim_1/behav/xsim/webtalk_7088.backup.jou b/lab2CA.sim/sim_1/behav/xsim/webtalk_7088.backup.jou new file mode 100644 index 0000000..4b0e6a4 --- /dev/null +++ b/lab2CA.sim/sim_1/behav/xsim/webtalk_7088.backup.jou @@ -0,0 +1,12 @@ +#----------------------------------------------------------- +# Webtalk v2018.3 (64-bit) +# SW Build 2405991 on Thu Dec 6 23:38:27 MST 2018 +# IP Build 2404404 on Fri Dec 7 01:43:56 MST 2018 +# Start of session at: Thu Apr 11 16:05:33 2019 +# Process ID: 7088 +# Current directory: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim +# Command line: wbtcv.exe -mode batch -source C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl -notrace +# Log file: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/webtalk.log +# Journal file: C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim\webtalk.jou +#----------------------------------------------------------- +source C:/Users/JoseIgnacio/CA -notrace diff --git a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/obj/xsim_1.c b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/obj/xsim_1.c index 832c70c..84a03bd 100644 --- a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/obj/xsim_1.c +++ b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/obj/xsim_1.c @@ -47,11 +47,12 @@ extern int main(int, char**); extern void execute_2(char*, char *); extern void execute_3(char*, char *); extern void execute_183(char*, char *); +extern void execute_456(char*, char *); +extern void execute_457(char*, char *); +extern void vlog_simple_process_execute_0_fast_no_reg_no_agg(char*, char*, char*); +extern void vlog_const_rhs_process_execute_0_fast_no_reg_no_agg(char*, char*, char*); extern void execute_454(char*, char *); extern void execute_455(char*, char *); -extern void vlog_simple_process_execute_0_fast_no_reg_no_agg(char*, char*, char*); -extern void execute_452(char*, char *); -extern void execute_453(char*, char *); extern void execute_189(char*, char *); extern void execute_220(char*, char *); extern void execute_221(char*, char *); @@ -66,7 +67,6 @@ extern void execute_229(char*, char *); extern void execute_230(char*, char *); extern void execute_7(char*, char *); extern void execute_8(char*, char *); -extern void vlog_const_rhs_process_execute_0_fast_no_reg_no_agg(char*, char*, char*); extern void execute_209(char*, char *); extern void execute_211(char*, char *); extern void execute_212(char*, char *); @@ -149,14 +149,14 @@ extern void execute_451(char*, char *); extern void execute_185(char*, char *); extern void execute_186(char*, char *); extern void execute_187(char*, char *); -extern void execute_456(char*, char *); -extern void execute_457(char*, char *); extern void execute_458(char*, char *); extern void execute_459(char*, char *); extern void execute_460(char*, char *); +extern void execute_461(char*, char *); +extern void execute_462(char*, char *); extern void vlog_transfunc_eventcallback(char*, char*, unsigned, unsigned, unsigned, char *); -extern void transaction_107(char*, char*, unsigned, unsigned, unsigned); -funcp funcTab[112] = {(funcp)execute_2, (funcp)execute_3, (funcp)execute_183, (funcp)execute_454, (funcp)execute_455, (funcp)vlog_simple_process_execute_0_fast_no_reg_no_agg, (funcp)execute_452, (funcp)execute_453, (funcp)execute_189, (funcp)execute_220, (funcp)execute_221, (funcp)execute_222, (funcp)execute_223, (funcp)execute_224, (funcp)execute_225, (funcp)execute_226, (funcp)execute_227, (funcp)execute_228, (funcp)execute_229, (funcp)execute_230, (funcp)execute_7, (funcp)execute_8, (funcp)vlog_const_rhs_process_execute_0_fast_no_reg_no_agg, (funcp)execute_209, (funcp)execute_211, (funcp)execute_212, (funcp)execute_11, (funcp)execute_190, (funcp)execute_191, (funcp)execute_23, (funcp)execute_213, (funcp)execute_214, (funcp)execute_215, (funcp)execute_216, (funcp)execute_217, (funcp)execute_218, (funcp)execute_219, (funcp)execute_26, (funcp)execute_36, (funcp)execute_40, (funcp)execute_42, (funcp)execute_231, (funcp)execute_232, (funcp)execute_233, (funcp)execute_234, (funcp)execute_235, (funcp)execute_236, (funcp)execute_237, (funcp)execute_238, (funcp)execute_239, (funcp)execute_240, (funcp)execute_241, (funcp)execute_242, (funcp)execute_243, (funcp)execute_244, (funcp)execute_425, (funcp)execute_427, (funcp)execute_428, (funcp)execute_430, (funcp)execute_431, (funcp)execute_432, (funcp)execute_433, (funcp)execute_434, (funcp)execute_45, (funcp)execute_46, (funcp)execute_360, (funcp)execute_361, (funcp)execute_362, (funcp)execute_363, (funcp)execute_364, (funcp)execute_365, (funcp)execute_289, (funcp)execute_270, (funcp)execute_310, (funcp)execute_311, (funcp)execute_312, (funcp)execute_313, (funcp)execute_314, (funcp)execute_315, (funcp)execute_357, (funcp)execute_358, (funcp)execute_129, (funcp)execute_405, (funcp)execute_160, (funcp)execute_173, (funcp)execute_435, (funcp)execute_436, (funcp)execute_437, (funcp)execute_438, (funcp)execute_439, (funcp)execute_440, (funcp)execute_441, (funcp)execute_442, (funcp)execute_443, (funcp)execute_444, (funcp)execute_445, (funcp)execute_446, (funcp)execute_447, (funcp)execute_448, (funcp)execute_449, (funcp)execute_450, (funcp)execute_451, (funcp)execute_185, (funcp)execute_186, (funcp)execute_187, (funcp)execute_456, (funcp)execute_457, (funcp)execute_458, (funcp)execute_459, (funcp)execute_460, (funcp)vlog_transfunc_eventcallback, (funcp)transaction_107}; +extern void transaction_109(char*, char*, unsigned, unsigned, unsigned); +funcp funcTab[112] = {(funcp)execute_2, (funcp)execute_3, (funcp)execute_183, (funcp)execute_456, (funcp)execute_457, (funcp)vlog_simple_process_execute_0_fast_no_reg_no_agg, (funcp)vlog_const_rhs_process_execute_0_fast_no_reg_no_agg, (funcp)execute_454, (funcp)execute_455, (funcp)execute_189, (funcp)execute_220, (funcp)execute_221, (funcp)execute_222, (funcp)execute_223, (funcp)execute_224, (funcp)execute_225, (funcp)execute_226, (funcp)execute_227, (funcp)execute_228, (funcp)execute_229, (funcp)execute_230, (funcp)execute_7, (funcp)execute_8, (funcp)execute_209, (funcp)execute_211, (funcp)execute_212, (funcp)execute_11, (funcp)execute_190, (funcp)execute_191, (funcp)execute_23, (funcp)execute_213, (funcp)execute_214, (funcp)execute_215, (funcp)execute_216, (funcp)execute_217, (funcp)execute_218, (funcp)execute_219, (funcp)execute_26, (funcp)execute_36, (funcp)execute_40, (funcp)execute_42, (funcp)execute_231, (funcp)execute_232, (funcp)execute_233, (funcp)execute_234, (funcp)execute_235, (funcp)execute_236, (funcp)execute_237, (funcp)execute_238, (funcp)execute_239, (funcp)execute_240, (funcp)execute_241, (funcp)execute_242, (funcp)execute_243, (funcp)execute_244, (funcp)execute_425, (funcp)execute_427, (funcp)execute_428, (funcp)execute_430, (funcp)execute_431, (funcp)execute_432, (funcp)execute_433, (funcp)execute_434, (funcp)execute_45, (funcp)execute_46, (funcp)execute_360, (funcp)execute_361, (funcp)execute_362, (funcp)execute_363, (funcp)execute_364, (funcp)execute_365, (funcp)execute_289, (funcp)execute_270, (funcp)execute_310, (funcp)execute_311, (funcp)execute_312, (funcp)execute_313, (funcp)execute_314, (funcp)execute_315, (funcp)execute_357, (funcp)execute_358, (funcp)execute_129, (funcp)execute_405, (funcp)execute_160, (funcp)execute_173, (funcp)execute_435, (funcp)execute_436, (funcp)execute_437, (funcp)execute_438, (funcp)execute_439, (funcp)execute_440, (funcp)execute_441, (funcp)execute_442, (funcp)execute_443, (funcp)execute_444, (funcp)execute_445, (funcp)execute_446, (funcp)execute_447, (funcp)execute_448, (funcp)execute_449, (funcp)execute_450, (funcp)execute_451, (funcp)execute_185, (funcp)execute_186, (funcp)execute_187, (funcp)execute_458, (funcp)execute_459, (funcp)execute_460, (funcp)execute_461, (funcp)execute_462, (funcp)vlog_transfunc_eventcallback, (funcp)transaction_109}; const int NumRelocateId= 112; void relocate(char *dp) diff --git a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl index 333a23d..4b06394 100644 --- a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl +++ b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/xsim_webtalk.tcl @@ -1,6 +1,6 @@ -webtalk_init -webtalk_dir C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/ +webtalk_init -webtalk_dir C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/ webtalk_register_client -client project -webtalk_add_data -client project -key date_generated -value "Wed Apr 10 12:50:20 2019" -context "software_version_and_target_device" +webtalk_add_data -client project -key date_generated -value "Thu Apr 11 17:31:39 2019" -context "software_version_and_target_device" webtalk_add_data -client project -key product_version -value "XSIM v2018.3 (64-bit)" -context "software_version_and_target_device" webtalk_add_data -client project -key build_version -value "2405991" -context "software_version_and_target_device" webtalk_add_data -client project -key os_platform -value "WIN64" -context "software_version_and_target_device" @@ -12,21 +12,21 @@ webtalk_add_data -client project -key target_family -value "not_applicable" -con webtalk_add_data -client project -key target_device -value "not_applicable" -context "software_version_and_target_device" webtalk_add_data -client project -key target_package -value "not_applicable" -context "software_version_and_target_device" webtalk_add_data -client project -key target_speed -value "not_applicable" -context "software_version_and_target_device" -webtalk_add_data -client project -key random_id -value "f67bb5263bf851bf9c1beaa84fe1017c" -context "software_version_and_target_device" +webtalk_add_data -client project -key random_id -value "17336daf-0d92-4f07-b4a4-ff1c52043edb" -context "software_version_and_target_device" webtalk_add_data -client project -key project_id -value "0a5803efda44405bb28bbf43ba22e808" -context "software_version_and_target_device" -webtalk_add_data -client project -key project_iteration -value "78" -context "software_version_and_target_device" +webtalk_add_data -client project -key project_iteration -value "143" -context "software_version_and_target_device" webtalk_add_data -client project -key os_name -value "Microsoft Windows 8 or later , 64-bit" -context "user_environment" webtalk_add_data -client project -key os_release -value "major release (build 9200)" -context "user_environment" -webtalk_add_data -client project -key cpu_name -value "Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz" -context "user_environment" -webtalk_add_data -client project -key cpu_speed -value "2395 MHz" -context "user_environment" +webtalk_add_data -client project -key cpu_name -value "Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz" -context "user_environment" +webtalk_add_data -client project -key cpu_speed -value "2594 MHz" -context "user_environment" webtalk_add_data -client project -key total_processors -value "1" -context "user_environment" -webtalk_add_data -client project -key system_ram -value "17.000 GB" -context "user_environment" +webtalk_add_data -client project -key system_ram -value "8.000 GB" -context "user_environment" webtalk_register_client -client xsim webtalk_add_data -client xsim -key Command -value "xsim" -context "xsim\\command_line_options" webtalk_add_data -client xsim -key trace_waveform -value "true" -context "xsim\\usage" -webtalk_add_data -client xsim -key runtime -value "10065 ns" -context "xsim\\usage" -webtalk_add_data -client xsim -key iteration -value "3" -context "xsim\\usage" -webtalk_add_data -client xsim -key Simulation_Time -value "0.09_sec" -context "xsim\\usage" -webtalk_add_data -client xsim -key Simulation_Memory -value "6280_KB" -context "xsim\\usage" -webtalk_transmit -clientid 722425617 -regid "" -xml C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.xml -html C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.html -wdm C:/REPOSITORIES/Educational/Western Michigan University/ECE3570-Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.wdm -intro "

XSIM Usage Report


" +webtalk_add_data -client xsim -key runtime -value "50015 ns" -context "xsim\\usage" +webtalk_add_data -client xsim -key iteration -value "0" -context "xsim\\usage" +webtalk_add_data -client xsim -key Simulation_Time -value "0.14_sec" -context "xsim\\usage" +webtalk_add_data -client xsim -key Simulation_Memory -value "8272_KB" -context "xsim\\usage" +webtalk_transmit -clientid 2296267995 -regid "" -xml C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.xml -html C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.html -wdm C:/Users/JoseIgnacio/CA Lab/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/webtalk/usage_statistics_ext_xsim.wdm -intro "

XSIM Usage Report


" webtalk_terminate diff --git a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/xsim.mem b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/xsim.mem index 3f0155f..8ab23ea 100644 Binary files a/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/xsim.mem and b/lab2CA.sim/sim_1/behav/xsim/xsim.dir/CPU9bits_tb_behav/xsim.mem differ diff --git a/lab2CA.sim/sim_1/behav/xsim/xvlog.pb b/lab2CA.sim/sim_1/behav/xsim/xvlog.pb index ba45504..d512677 100644 Binary files a/lab2CA.sim/sim_1/behav/xsim/xvlog.pb and b/lab2CA.sim/sim_1/behav/xsim/xvlog.pb differ diff --git a/lab2CA.srcs/sources_1/new/CPU9bits.v b/lab2CA.srcs/sources_1/new/CPU9bits.v index 6c48962..05c6ebb 100644 --- a/lab2CA.srcs/sources_1/new/CPU9bits.v +++ b/lab2CA.srcs/sources_1/new/CPU9bits.v @@ -29,7 +29,7 @@ module CPU9bits( fDPipReg pipe1( .clk(clk), .reset(reset), - .En(RegEn), + .En(1'b0), .Din(FDOut), .Dout(FDPipOut) ); @@ -44,7 +44,7 @@ module CPU9bits( eMPipReg pipe2( .clk(clk), .reset(reset), - .En(RegEn), + .En(1'b0), .Din(EMOut), .Dout(EMPipOut) ); @@ -72,13 +72,12 @@ module CPU9bits_tb(); #5 clk = ~clk; // Period to be determined end - CPU9bits CPU9bits0( .reset(reset), .clk(clk), .done(done), .result(result)); - + initial begin #5 reset = 1'b1; diff --git a/lab2CA.srcs/sources_1/new/ControlUnit.v b/lab2CA.srcs/sources_1/new/ControlUnit.v index c5b4f75..1a14734 100644 --- a/lab2CA.srcs/sources_1/new/ControlUnit.v +++ b/lab2CA.srcs/sources_1/new/ControlUnit.v @@ -7,14 +7,14 @@ module ControlUnit( output reg [2:0] FU, output reg [1:0] bank, output reg addi, mem, dataMemEn, RegEn, halt, link, js - ); + ); always @(instIn, functBit) begin case(instIn) 4'b0000: // Halt/NOP begin - halt <= 1'b1; + halt <= functBit; RegEn <= 1'b1; FU <= 3'b001; // Disable Branching addi <= 1'b0; diff --git a/lab2CA.xpr b/lab2CA.xpr index dff2348..4685357 100644 --- a/lab2CA.xpr +++ b/lab2CA.xpr @@ -3,7 +3,7 @@ - +