Skip to content

Commit

Permalink
Save Changes & Submit
Browse files Browse the repository at this point in the history
  • Loading branch information
CemBelentepe committed Feb 29, 2024
1 parent f889391 commit e4b5146
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion part_1_combinational/AluTest
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Binary file modified part_1_combinational/AluTest.so
Binary file not shown.
2 changes: 1 addition & 1 deletion part_1_combinational/ArbiterTest
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Binary file modified part_1_combinational/ArbiterTest.so
Binary file not shown.
2 changes: 1 addition & 1 deletion part_1_combinational/ShifterTest
Original file line number Diff line number Diff line change
Expand Up @@ -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 1708704126 "$@"
exec $BLUESPECDIR/tcllib/bluespec/bluesim.tcl $0.so mkTest --script_name `basename $0` --creation_time 1709227458 "$@"
Binary file modified part_1_combinational/ShifterTest.so
Binary file not shown.
2 changes: 1 addition & 1 deletion part_1_combinational/build/mkTest.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion part_1_combinational/build/mkTest.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
6 changes: 3 additions & 3 deletions part_1_combinational/build/model_mkTest.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion part_1_combinational/build/model_mkTest.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
Binary file modified part_1_combinational/build/model_mkTest.o
Binary file not shown.
2 changes: 1 addition & 1 deletion part_1_combinational/build/module_naiveShfl.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion part_1_combinational/build/module_naiveShfl.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/TbVD
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Binary file modified part_2_vector_multiply/TbVD.so
Binary file not shown.
14 changes: 7 additions & 7 deletions part_2_vector_multiply/VectorDot.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -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
Expand All @@ -83,19 +83,19 @@ 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;
i <= i_in;
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

Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/build/mkTb.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/build/mkTb.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/build/mkVectorDot.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/build/mkVectorDot.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
6 changes: 3 additions & 3 deletions part_2_vector_multiply/build/model_mkTb.cxx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion part_2_vector_multiply/build/model_mkTb.h
Original file line number Diff line number Diff line change
@@ -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
*
*/

Expand Down
Binary file modified part_2_vector_multiply/build/model_mkTb.o
Binary file not shown.

0 comments on commit e4b5146

Please sign in to comment.