2121
2222namespace xilinx ::AIE {
2323
24- // Forward declarations
24+ // Forward declarations
2525class TileOp ;
2626
2727using TileID =struct TileID {
@@ -108,7 +108,8 @@ class AIETargetModel {
108108
109109protected:
110110// / Subclasses override to provide architecture-specific database loading.
111- // / Returns nullptr if register database is not available for this architecture.
111+ // / Returns nullptr if register database is not available for this
112+ // / architecture.
112113virtual std::unique_ptr<RegisterDatabase>loadRegisterDatabase ()const ;
113114
114115// / Get the register database, loading it lazily on first access.
@@ -268,8 +269,8 @@ class AIETargetModel {
268269// / @return Port index for Stream_Switch_Event_Port_Selection register, or
269270// / nullopt if invalid
270271virtual std::optional<uint32_t >
271- getStreamSwitchPortIndex (int col,int row, WireBundle bundle,int channel,
272- bool master)const =0 ;
272+ getStreamSwitchPortIndex (int col,int row, WireBundle bundle,
273+ uint32_t channel, bool master)const =0 ;
273274
274275// / Check if a stream switch port is valid for the given tile
275276// / @param col Tile column
@@ -279,7 +280,7 @@ class AIETargetModel {
279280// / @param master Master/slave direction
280281// / @return True if the port configuration is valid
281282virtual bool isValidStreamSwitchPort (int col,int row, WireBundle bundle,
282- int channel,bool master)const = 0;
283+ uint32_t channel,bool master)const = 0;
283284
284285// / Return the number of buffer descriptors supported by the DMA in the given
285286// / tile.
@@ -483,10 +484,10 @@ class AIE1TargetModel : public AIETargetModel {
483484
484485 std::optional<uint32_t >getStreamSwitchPortIndex (int col,int row,
485486 WireBundle bundle,
486- int channel,
487+ uint32_t channel,
487488bool master)const override ;
488489bool isValidStreamSwitchPort (int col,int row, WireBundle bundle,
489- int channel,bool master)const override ;
490+ uint32_t channel,bool master)const override ;
490491
491492uint32_t getColumnShift ()const override {return 23 ; }
492493uint32_t getRowShift ()const override {return 18 ; }
@@ -599,10 +600,10 @@ class AIE2TargetModel : public AIETargetModel {
599600
600601 std::optional<uint32_t >getStreamSwitchPortIndex (int col,int row,
601602 WireBundle bundle,
602- int channel,
603+ uint32_t channel,
603604bool master)const override ;
604605bool isValidStreamSwitchPort (int col,int row, WireBundle bundle,
605- int channel,bool master)const override ;
606+ uint32_t channel,bool master)const override ;
606607
607608uint32_t getColumnShift ()const override {return 25 ; }
608609uint32_t getRowShift ()const override {return 20 ; }