Hi John,
Please find below the workaround for the questions asked:
1. Unconnected lines
Yes, you can't have a line unconnected in Simulink. To work around this issue, there are several blocks in Simulink that you can use based on your use case::
- To pass the inputs (A0, A1, A2, C, D, E) to the design/model, you can either use a 'Constant' block or a 'From Workspace' block (if you want to pass the inputs from the MATLAB workspace).
- The output 'Q7' can be connected to a 'Display' block (to display the value), a 'To Workspace' block (to store its value in the MATLAB workspace), or a 'Terminator' block (to terminate any unconnected output port).
2. Logical buffers
To replicate the functionality of a digital buffer, you can either use the 'Unit Delay' or the 'Memory' block in Simulink, depending on your use case.
3. Merge two lines
In Simulink, you can merge two wires only when the first wire is properly connected between two blocks. To merge two wires, you need to first connect two blocks with wire-1, place a third block to which wire-2 needs to be connected, and then connect the two wires.
You can refer to the following image to merge two wires:
For further information regarding the blocks mentioned, you can refer to the following documentation links:
For 'Constant' block: https://www.mathworks.com/help/simulink/slref/constant.html
For 'From Workspace' block: https://www.mathworks.com/help/simulink/slref/fromworkspace.html
For 'Display' block: https://www.mathworks.com/help/simulink/slref/display.html
For 'To Workspace' block: https://www.mathworks.com/help/simulink/slref/toworkspace.html
For 'Terminator' block: https://www.mathworks.com/help/simulink/slref/terminator.html
For 'Unit Delay' block: https://www.mathworks.com/help/simulink/slref/unitdelay.html
For 'Memory' block: https://www.mathworks.com/help/simulink/slref/memory.html
Apart from these Simulink blocks, there are several others that you can use. You can search and use the required blocks from the following list:
Hope this helps!