Lines Matching refs:peripheral_index
116 …dWord: write_to_bus(message.address, renode_pkg::QuadWord, message.data, message.peripheral_index);
117 …ord: write_to_bus(message.address, renode_pkg::DoubleWord, message.data, message.peripheral_index);
118 …questWord: write_to_bus(message.address, renode_pkg::Word, message.data, message.peripheral_index);
119 …questByte: write_to_bus(message.address, renode_pkg::Byte, message.data, message.peripheral_index);
120 …eadRequestQuadWord: read_from_bus(message.address, renode_pkg::QuadWord, message.peripheral_index);
121 …equestDoubleWord: read_from_bus(message.address, renode_pkg::DoubleWord, message.peripheral_index);
122 …e_pkg::readRequestWord: read_from_bus(message.address, renode_pkg::Word, message.peripheral_index);
123 …e_pkg::readRequestByte: read_from_bus(message.address, renode_pkg::Byte, message.peripheral_index);
170 task automatic read_from_bus(address_t address, valid_bits_e data_bits, int peripheral_index); port
173 runtime.controllers[peripheral_index].read(address, data_bits, data, is_error);
175 if (is_error) runtime.connection.send(message_t'{renode_pkg::error, 0, 0, peripheral_index});
176 …else runtime.connection.send(message_t'{renode_pkg::readRequest, address, data, peripheral_index});
179 …tomatic write_to_bus(address_t address, valid_bits_e data_bits, data_t data, int peripheral_index); port
181 runtime.controllers[peripheral_index].write(address, data_bits, data, is_error);
183 if (is_error) runtime.connection.send(message_t'{renode_pkg::error, 0, 0, peripheral_index});
184 else runtime.connection.send(message_t'{renode_pkg::ok, 0, 0, peripheral_index});
187 task automatic read_transaction(int peripheral_index); port
190 case (runtime.peripherals[peripheral_index].read_transaction_data_bits)
196 …ess with the 'b%b mask from a bus controller.", runtime.peripherals[peripheral_index].read_transac…
197 runtime.peripherals[peripheral_index].read_respond(0, 1);
201 message.address = runtime.peripherals[peripheral_index].read_transaction_address;
220 runtime.peripherals[peripheral_index].read_respond(message.data, 0);
223 task automatic write_transaction(int peripheral_index); port
226 case (runtime.peripherals[peripheral_index].write_transaction_data_bits)
232 …ess with the 'b%b mask from a bus controller.", runtime.peripherals[peripheral_index].read_transac…
233 runtime.peripherals[peripheral_index].write_respond(1);
237 message.address = runtime.peripherals[peripheral_index].write_transaction_address;
238 message.data = runtime.peripherals[peripheral_index].write_transaction_data;
256 runtime.peripherals[peripheral_index].write_respond(0);