assign bus0address = (bus == 0) ? busaddress : 16'bzzzzzzzzzzzzzzz;
assign bus1address = (bus == 1) ? busaddress : 16'bzzzzzzzzzzzzzzz;
assign bus0data = ((bus == 0) && buswr) ? buswdata : 8'bzzzzzzzz;
assign bus1data = ((bus == 1) && buswr) ? buswdata : 8'bzzzzzzzz;
assign busdata = (bus == 0) ? bus0data : bus1data;
assign bus0address = (bus == 0) ? busaddress : 16'bzzzzzzzzzzzzzzz;
assign bus1address = (bus == 1) ? busaddress : 16'bzzzzzzzzzzzzzzz;
assign bus0data = ((bus == 0) && buswr) ? buswdata : 8'bzzzzzzzz;
assign bus1data = ((bus == 1) && buswr) ? buswdata : 8'bzzzzzzzz;
assign busdata = (bus == 0) ? bus0data : bus1data;