Skip to content

Commit ea5b7e7

Browse files
committed
available block type should be determined regardless of using RL agent, it is needed in place.cpp
1 parent 188cfb5 commit ea5b7e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/place/RL_agent_util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#include "manual_move_generator.h"
33

44
void create_move_generators(std::unique_ptr<MoveGenerator>& move_generator, std::unique_ptr<MoveGenerator>& move_generator2, const t_placer_opts& placer_opts, int move_lim) {
5+
//extract available physical block types in the netlist
6+
determine_agent_block_types();
7+
58
if (placer_opts.RL_agent_placement == false) {
69
if (placer_opts.place_algorithm.is_timing_driven()) {
710
VTR_LOG("Using static probabilities for choosing each move type\n");
@@ -42,9 +45,6 @@ void create_move_generators(std::unique_ptr<MoveGenerator>& move_generator, std:
4245
* only move type. *
4346
* This state is activated late in the anneal and in the Quench */
4447

45-
//extract available physical block types in the netlist
46-
determine_agent_block_types();
47-
4848
auto& place_ctx = g_vpr_ctx.placement();
4949
int num_1st_state_avail_moves = placer_opts.place_algorithm.is_timing_driven() ? NUM_PL_1ST_STATE_MOVE_TYPES : NUM_PL_NONTIMING_MOVE_TYPES;
5050
int num_2nd_state_avail_moves = placer_opts.place_algorithm.is_timing_driven() ? NUM_PL_MOVE_TYPES : NUM_PL_NONTIMING_MOVE_TYPES;

0 commit comments

Comments
 (0)