LaoShaw Posted May 24, 2022 Report Share Posted May 24, 2022 I have a UART done in systemc/TLM2 with tx/rx etc, how can it interact with the host-os(e.g. Linux)? For example my OS is booting on the systemc-tlm2-simulator and I need a console to interact with it. I don't fully know how to get either one below to work in the code, e.g. how to make TLM2 model to talk with outside world. Typical use case includes UART for console, or Ethernet for internet. In the case of UART: 1. how to use a separate xterm window that somehow works with the simulator for printf/input. 2. how to use my current Linux console(where it launches the simulator) directly without a separate xterm, i.e. the console's current stdio and stdout will be owned by the simulator after it is launched, kind of like QEMU's `-serial stdio`, i.e redirect simulator's IO to current Linux console. It sometimes is called "virtual host IO"? Any pointers are appreciated. Thanks! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.