Lines Matching refs:runtime

19     ref renode_runtime runtime,  port
37 .runtime(runtime),
43 runtime.controllers = new[RenodeToCosimCount];
44 foreach(runtime.controllers[i]) begin
45 runtime.controllers[i] = new();
48 runtime.peripherals = new[CosimToRenodeCount];
49 foreach(runtime.peripherals[i]) begin
50 runtime.peripherals[i] = new();
57 always @(runtime.peripherals[i].read_transaction_request) read_transaction(i);
58 always @(runtime.peripherals[i].write_transaction_request) write_transaction(i);
59 always @(reset_assert_all) runtime.peripherals[i].reset_assert();
60 always @(runtime.peripherals[i].reset_assert_response) begin
66 always @(runtime.peripherals[i].reset_deassert_response) begin
72 always @(reset_deassert_all) runtime.peripherals[i].reset_deassert();
79 always @(reset_assert_all) runtime.controllers[i].reset_assert();
80 always @(reset_deassert_all) runtime.controllers[i].reset_deassert();
81 always @(runtime.controllers[i].reset_assert_response) begin
87 always @(runtime.controllers[i].reset_deassert_response) begin
101 if (runtime.connection.exclusive_receive.try_get() != 0) begin
102 did_receive = runtime.connection.try_receive(message);
103 runtime.connection.exclusive_receive.put();
127 if (!is_handled) runtime.connection.handle_message(message, is_handled);
128 …if (!is_handled) runtime.connection.log(renode_pkg::LogWarning, $sformatf("Trying to handle the un…
137 runtime.connection.exclusive_receive.get();
159 runtime.connection.exclusive_receive.put();
166runtime.connection.send_to_async_receiver(message_t'{renode_pkg::tickClock, 0, 0, renode_pkg::no_p…
167runtime.connection.log(renode_pkg::LogNoisy, $sformatf("Simulation time synced to %t", $realtime));
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});
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});
190 case (runtime.peripherals[peripheral_index].read_transaction_data_bits)
196runtime.connection.fatal_error($sformatf("Renode doesn't support access with the 'b%b mask from a …
197 runtime.peripherals[peripheral_index].read_respond(0, 1);
201 message.address = runtime.peripherals[peripheral_index].read_transaction_address;
204 runtime.connection.exclusive_receive.get();
205 if(!runtime.connection.is_connected()) begin
206 runtime.connection.exclusive_receive.put();
210 runtime.connection.send_to_async_receiver(message);
212 runtime.connection.receive(message);
216 runtime.connection.receive(message);
219 runtime.connection.exclusive_receive.put();
220 runtime.peripherals[peripheral_index].read_respond(message.data, 0);
226 case (runtime.peripherals[peripheral_index].write_transaction_data_bits)
232runtime.connection.fatal_error($sformatf("Renode doesn't support access with the 'b%b mask from a …
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;
240 runtime.connection.exclusive_receive.get();
241 if(!runtime.connection.is_connected()) begin
242 runtime.connection.exclusive_receive.put();
246 runtime.connection.send_to_async_receiver(message);
247 runtime.connection.receive(message);
251 runtime.connection.receive(message);
254 runtime.connection.exclusive_receive.put();
256 runtime.peripherals[peripheral_index].write_respond(0);
265runtime.connection.log(renode_pkg::LogWarning, $sformatf("Output %0d is out of range of [0;%0d]", …
266 runtime.connection.send(message_t'{renode_pkg::error, 0, 0, renode_pkg::no_peripheral_index});
272 runtime.connection.send(message_t'{renode_pkg::ok, 0, 0, renode_pkg::no_peripheral_index});