Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fu/vector/VectorAllReduceRTL.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def construct(s, DataType, CtrlType,
high = (i + 1) * sub_bw
# s.connect() works with slice objects directly during elaboration.
s.temp_result[i][0:sub_bw] //= s.recv_in[0].msg.payload[low:high]
s.temp_result[i][sub_bw:data_bitwidth] //= 0

@update
def update_result():
Expand Down
4 changes: 2 additions & 2 deletions fu/vector/VectorMulComboRTL.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def update_input_output():

for i in range(num_lanes):
s.temp_result[i] @= TempDataType(0)
s.Fu[i].recv_in[0].msg[0:sub_bw] @= FuDataType()
s.Fu[i].recv_in[1].msg[0:sub_bw] @= FuDataType()
s.Fu[i].recv_in[0].msg @= 0
s.Fu[i].recv_in[1].msg @= 0

if s.recv_opt.msg.operation == OPT_VEC_MUL:
# Connection: split into vectorized FUs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
`include "header.sv"

// vcs -sverilog -full64 -timescale=1ns/1ps ../MeshMultiCgraRTL__explicit__pickled.v MeshMultiCgraRTL_2x2_fir_scalar_tb.v -debug_access+all
// vcs -sverilog -full64 -timescale=1ns/1ps ../../../../../coredec_acc_soc/accelerator_soc/MeshMultiCgraRTL__explicit__pickled.v ../MeshMultiCgraRTL_2x2_fir_scalar_tb.v -debug_access+all +incdir+..

module cgra_test
(
Expand Down
Loading
Loading