Skip to content

Commit

Permalink
chip configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SeahK committed Oct 6, 2023
1 parent e095e35 commit a3887b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/gemmini/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ object GemminiConfigs {
mvin_scale_args=None, //Some(defaultConfig.mvin_scale_args.get.copy(latency=3)), // 4->3
acc_singleported=false,
acc_sub_banks=1,
mesh_output_delay = 2,
mesh_output_delay = 1,
ex_read_from_acc=false,
ex_write_to_spad=false,
has_training_convs = false,
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/gemmini/ConfigsFP.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ object GemminiFPConfigs {
acc_sub_banks = 1,
acc_banks = 2,
mesh_output_delay = 2,
tile_latency = 1,
//acc_latency = 3,
ex_read_from_acc=false,
ex_write_to_spad=false,
Expand All @@ -118,13 +119,14 @@ object GemminiFPConfigs {
acc_scale_args = Some(ScaleArguments((t: Float, u: Float) => {t}, 1, Float(8, 24), -1, identity = "1.0",
c_str = "((x))"
)),
mvin_scale_args = Some(ScaleArguments((t: Float, u: Float) => t * u, 4, Float(8, 24), -1, identity = "1.0", c_str="((x) * (scale))")),
mvin_scale_args = Some(ScaleArguments((t: Float, u: Float) => t * u, 3, Float(8, 24), -1, identity = "1.0", c_str="((x) * (scale))")),
//mvin_scale_args = Some(ScaleArguments((t: Float, u: Float) => {Mux(u > 0.U.asTypeOf(Float(8, 24)), t, 0.U.asTypeOf(Float(8,24)) - t)}, 1, Float(8, 24), -1, identity = "1.0", c_str="((x) * (scale))")), // 2 -> 1 stage
mvin_scale_acc_args=None,
acc_singleported=false,
acc_sub_banks = 1,
acc_banks = 2,
mesh_output_delay = 2,
tile_latency = 1,
//acc_latency = 3,
ex_read_from_acc=false,
ex_write_to_spad=false,
Expand Down

0 comments on commit a3887b9

Please sign in to comment.