Skip to content

How to run a dual machine network connected simulation? #1885

Closed Answered by powerjg
faridsamandi asked this question in Q&A
Discussion options

You must be logged in to vote

This is not supported out of the box with the stdlib, but it should be doable with some specialization.

You can take the board that you're using (e.g., X86Board or ArmBoard) and add an ethernet device to the board. I would extend one of these (e.g., class NetworkX86Board(X86Board)) and add the ethernet device.

Then, you will need to create a new kind of board (i.e., inherit from AbstractBoard) that can take multiple "sub boards" and connect the ethernet ports together (e.g., with a switch). Then, in your new board, you will need to override connectThings and a few other functions to get everything to work. Finally, you can pass that new board (maybe called Cluster?) to the simulator and t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by faridsamandi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@powerjg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants