From e4b5146c0848f6b500d18217dbb6ae0cba1e1a8e Mon Sep 17 00:00:00 2001 From: Cem Belentepe Date: Thu, 29 Feb 2024 18:24:26 +0100 Subject: [PATCH] Save Changes & Submit --- part_1_combinational/AluTest | 2 +- part_1_combinational/AluTest.so | Bin 251688 -> 251688 bytes part_1_combinational/ArbiterTest | 2 +- part_1_combinational/ArbiterTest.so | Bin 238520 -> 238520 bytes part_1_combinational/ShifterTest | 2 +- part_1_combinational/ShifterTest.so | Bin 259968 -> 259968 bytes part_1_combinational/build/mkTest.cxx | 2 +- part_1_combinational/build/mkTest.h | 2 +- part_1_combinational/build/model_mkTest.cxx | 6 +++--- part_1_combinational/build/model_mkTest.h | 2 +- part_1_combinational/build/model_mkTest.o | Bin 21008 -> 21008 bytes .../build/module_naiveShfl.cxx | 2 +- part_1_combinational/build/module_naiveShfl.h | 2 +- part_2_vector_multiply/TbVD | 2 +- part_2_vector_multiply/TbVD.so | Bin 295120 -> 295120 bytes part_2_vector_multiply/VectorDot.bsv | 14 +++++++------- part_2_vector_multiply/build/mkTb.cxx | 2 +- part_2_vector_multiply/build/mkTb.h | 2 +- part_2_vector_multiply/build/mkVectorDot.cxx | 2 +- part_2_vector_multiply/build/mkVectorDot.h | 2 +- part_2_vector_multiply/build/model_mkTb.cxx | 6 +++--- part_2_vector_multiply/build/model_mkTb.h | 2 +- part_2_vector_multiply/build/model_mkTb.o | Bin 28584 -> 28584 bytes 23 files changed, 27 insertions(+), 27 deletions(-) diff --git a/part_1_combinational/AluTest b/part_1_combinational/AluTest index c9a54b3..5399260 100755 --- a/part_1_combinational/AluTest +++ b/part_1_combinational/AluTest @@ -9,4 +9,4 @@ do exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` -h fi done -exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` --creation_time 1708704119 "$@" +exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` --creation_time 1709227451 "$@" diff --git a/part_1_combinational/AluTest.so b/part_1_combinational/AluTest.so index 704e3790d2c3861fc08e7cdf86fe3642f18f064a..f213f1549ec57c6677d42422be3248d8e28ba83e 100755 GIT binary patch delta 57 zcmZ3nj(^2E{tY*nMAYssjbqukV-xTBQ;lZdr|2z7y>Hk2hH3j7CPqn9=G}WAv~yT6 N0x{Ee4hv?5`2hZ=7t{a% delta 57 zcmZ3nj(^2E{tY*nMB1mzPBVP|<>w=& diff --git a/part_1_combinational/ArbiterTest b/part_1_combinational/ArbiterTest index 0c5188d..e4f47b1 100755 --- a/part_1_combinational/ArbiterTest +++ b/part_1_combinational/ArbiterTest @@ -9,4 +9,4 @@ do exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` -h fi done -exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` --creation_time 1708704122 "$@" +exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` --creation_time 1709227454 "$@" diff --git a/part_1_combinational/ArbiterTest.so b/part_1_combinational/ArbiterTest.so index f4fbdeab3c868fde977c3dcdf53ef49abf8378a3..f353865c7761c3d6c82d0d728aa94fedfeabc968 100755 GIT binary patch delta 57 zcmV-90LK5g#}2s14zSn)6i7>w!g%-X-}SBz`>z2$H_KPe|AXuTx9kD|=^O*Tz2Jw~ P9|4Eh9|E`79|PcnY)Ks_ delta 57 zcmdmSoNvc*z702+M5fkN%uq~8KX5JIC~8U<|I@fEwaVrxt~z+5{f0av N5HoGRAnZ_1uW;86PKqJ{cV23wEYbeqop5n-N75}8i9;J M%(Pu2kU3%*0EV3vqyPW_ diff --git a/part_1_combinational/build/mkTest.cxx b/part_1_combinational/build/mkTest.cxx index 4b0e21d..260825b 100644 --- a/part_1_combinational/build/mkTest.cxx +++ b/part_1_combinational/build/mkTest.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ #include "bluesim_primitives.h" diff --git a/part_1_combinational/build/mkTest.h b/part_1_combinational/build/mkTest.h index a722d50..e3bfb40 100644 --- a/part_1_combinational/build/mkTest.h +++ b/part_1_combinational/build/mkTest.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ diff --git a/part_1_combinational/build/model_mkTest.cxx b/part_1_combinational/build/model_mkTest.cxx index 476c4da..6e0edcb 100644 --- a/part_1_combinational/build/model_mkTest.cxx +++ b/part_1_combinational/build/model_mkTest.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ #include "bluesim_primitives.h" @@ -212,8 +212,8 @@ void MODEL_mkTest::get_version(char const **name, char const **build) time_t MODEL_mkTest::get_creation_time() { - /* Fri Feb 23 16:02:06 UTC 2024 */ - return 1708704126llu; + /* Thu Feb 29 17:24:18 UTC 2024 */ + return 1709227458llu; } /* State dumping function */ diff --git a/part_1_combinational/build/model_mkTest.h b/part_1_combinational/build/model_mkTest.h index 8b2c2d1..e2f264e 100644 --- a/part_1_combinational/build/model_mkTest.h +++ b/part_1_combinational/build/model_mkTest.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ diff --git a/part_1_combinational/build/model_mkTest.o b/part_1_combinational/build/model_mkTest.o index 6a8f7a4203666ed89c1c6df87dade8406f98aee8..46d44f99c0b687315210c62274b34df64ae846cd 100644 GIT binary patch delta 16 WcmbQRgmD58J!L+$_rb;&8i4>q!w6IW delta 16 WcmbQRgmD58J!P&tcw^%WjX(fF*9Z&% diff --git a/part_1_combinational/build/module_naiveShfl.cxx b/part_1_combinational/build/module_naiveShfl.cxx index b0de716..3170aa2 100644 --- a/part_1_combinational/build/module_naiveShfl.cxx +++ b/part_1_combinational/build/module_naiveShfl.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ #include "bluesim_primitives.h" diff --git a/part_1_combinational/build/module_naiveShfl.h b/part_1_combinational/build/module_naiveShfl.h index 788f329..4880b2a 100644 --- a/part_1_combinational/build/module_naiveShfl.h +++ b/part_1_combinational/build/module_naiveShfl.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:06 CET 2024 + * On Thu Feb 29 18:24:18 CET 2024 * */ diff --git a/part_2_vector_multiply/TbVD b/part_2_vector_multiply/TbVD index 7ad2f6c..eb38367 100755 --- a/part_2_vector_multiply/TbVD +++ b/part_2_vector_multiply/TbVD @@ -9,4 +9,4 @@ do exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTb --script_name `basename $0` -h fi done -exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTb --script_name `basename $0` --creation_time 1708704131 "$@" +exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTb --script_name `basename $0` --creation_time 1709227463 "$@" diff --git a/part_2_vector_multiply/TbVD.so b/part_2_vector_multiply/TbVD.so index 67a9ccfa9f2735b164386de52f0eef64a32b0eae..f6b399a3e3724e69f42b9e85026c56b7a6419088 100755 GIT binary patch delta 57 zcmcc6D0HDwXu}OAk=q4b8-0Fzsvrx4DI~;#kMtgf^yz>$Aispn6|%RVm!Hvx%uFY_8of} NftYFgj=jthhXGse9e4l$ diff --git a/part_2_vector_multiply/VectorDot.bsv b/part_2_vector_multiply/VectorDot.bsv index 7009e11..0eb5be1 100644 --- a/part_2_vector_multiply/VectorDot.bsv +++ b/part_2_vector_multiply/VectorDot.bsv @@ -42,7 +42,7 @@ module mkVectorDot (VD); address: zeroExtend(pos_a), datain: ?}); - if (pos_a < dim*zeroExtend(i+1)-1) + if (pos_a < dim*zeroExtend(i+1)-1) // BUG 1: position starts from dim*i and goes until dim*i+dim-1 pos_a <= pos_a + 1; else done_a <= True; @@ -56,7 +56,7 @@ module mkVectorDot (VD); address: zeroExtend(pos_b), datain: ?}); - if (pos_b < dim*zeroExtend(i+1)-1) + if (pos_b < dim*zeroExtend(i+1)-1) // BUG 2: position starts from dim*i and goes until dim*i+dim-1 pos_b <= pos_b + 1; else done_b <= True; @@ -67,7 +67,7 @@ module mkVectorDot (VD); let out_a <- a.portA.response.get(); let out_b <- b.portA.response.get(); - output_res <= output_res + out_a*out_b; + output_res <= output_res + out_a*out_b; // BUG 3: Multiplication should accumulate pos_out <= pos_out + 1; if (pos_out == dim-1) begin @@ -83,11 +83,11 @@ module mkVectorDot (VD); method Action start(Bit#(8) dim_in, Bit#(2) i_in) if (!ready_start); ready_start <= True; - output_res <= 0; + output_res <= 0; // BUG 4: Output should be cleared for the process dim <= dim_in; done_all <= False; - pos_a <= dim_in*zeroExtend(i_in); - pos_b <= dim_in*zeroExtend(i_in); + pos_a <= dim_in*zeroExtend(i_in); // BUG 5: Variable 'i' refers to the old value of the register, 'i_in' should be the correct value + pos_b <= dim_in*zeroExtend(i_in); // BUG 6: Variable 'i' refers to the old value of the register, 'i_in' should be the correct value done_a <= False; done_b <= False; pos_out <= 0; @@ -95,7 +95,7 @@ module mkVectorDot (VD); endmethod method ActionValue#(Bit#(32)) response() if (done_all); - ready_start <= False; + ready_start <= False; // BUG 7: To start the 'ready_start' value should be false, so when the response is read it can be set to false return output_res; endmethod diff --git a/part_2_vector_multiply/build/mkTb.cxx b/part_2_vector_multiply/build/mkTb.cxx index 4320af1..5aa4619 100644 --- a/part_2_vector_multiply/build/mkTb.cxx +++ b/part_2_vector_multiply/build/mkTb.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ #include "bluesim_primitives.h" diff --git a/part_2_vector_multiply/build/mkTb.h b/part_2_vector_multiply/build/mkTb.h index 90bc6dd..eb65994 100644 --- a/part_2_vector_multiply/build/mkTb.h +++ b/part_2_vector_multiply/build/mkTb.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ diff --git a/part_2_vector_multiply/build/mkVectorDot.cxx b/part_2_vector_multiply/build/mkVectorDot.cxx index 4b35fbe..0524584 100644 --- a/part_2_vector_multiply/build/mkVectorDot.cxx +++ b/part_2_vector_multiply/build/mkVectorDot.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ #include "bluesim_primitives.h" diff --git a/part_2_vector_multiply/build/mkVectorDot.h b/part_2_vector_multiply/build/mkVectorDot.h index 157460f..28eb443 100644 --- a/part_2_vector_multiply/build/mkVectorDot.h +++ b/part_2_vector_multiply/build/mkVectorDot.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ diff --git a/part_2_vector_multiply/build/model_mkTb.cxx b/part_2_vector_multiply/build/model_mkTb.cxx index bdafe99..202047a 100644 --- a/part_2_vector_multiply/build/model_mkTb.cxx +++ b/part_2_vector_multiply/build/model_mkTb.cxx @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ #include "bluesim_primitives.h" @@ -312,8 +312,8 @@ void MODEL_mkTb::get_version(char const **name, char const **build) time_t MODEL_mkTb::get_creation_time() { - /* Fri Feb 23 16:02:11 UTC 2024 */ - return 1708704131llu; + /* Thu Feb 29 17:24:23 UTC 2024 */ + return 1709227463llu; } /* State dumping function */ diff --git a/part_2_vector_multiply/build/model_mkTb.h b/part_2_vector_multiply/build/model_mkTb.h index 389df3d..e8383db 100644 --- a/part_2_vector_multiply/build/model_mkTb.h +++ b/part_2_vector_multiply/build/model_mkTb.h @@ -1,7 +1,7 @@ /* * Generated by Bluespec Compiler, version 2023.07 (build 0eb551d) * - * On Fri Feb 23 17:02:11 CET 2024 + * On Thu Feb 29 18:24:23 CET 2024 * */ diff --git a/part_2_vector_multiply/build/model_mkTb.o b/part_2_vector_multiply/build/model_mkTb.o index ad03a79d51e5bd0d41ef95a80cca6585541a2a47..da3392436ff4c8d00dbbbebbc9b4a78b264dbfba 100644 GIT binary patch delta 16 YcmZ2+pK--~#tBcEkMDi3@x_5W08S(cv;Y7A delta 16 YcmZ2+pK--~#tBcEn-AXD_~Jkw08BUuYybcN