Commit 7d69ea1e authored by Michael Reese's avatar Michael Reese

eb_sim_core: simulated eb-device name is written to /tmp/simbridge-eb-device

parent 59337a64
......@@ -13,6 +13,7 @@
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <deque>
// std_logic values
......@@ -78,6 +79,8 @@ public:
grantpt(pfds[0].fd);
unlockpt(pfds[0].fd);
state = EB_SLAVE_STATE_IDLE;
std::ofstream tmpfile("/tmp/simbridge-eb-device");
tmpfile << pts_name().substr(1) << std::endl;
std::cerr << "eb-device: " << pts_name() << std::endl;
if (_stop_until_connected) {
std::cerr << "waiting for client, simulation stopped ... ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment