Forum Discussion
Altera_Forum
Honored Contributor
15 years agouart code
What does the following code do? case(SW[3:0]) 4'b0000: UART_TXD = RS422_1_TX; 4'b0001: UART_TXD = RS422_2_TX; 4'b0010: UART_TXD = RS422_3_TX; 4'b0011: UART...
Altera_Forum
Honored Contributor
15 years agoHi:
This is an 16 to 1 multiplexer or mux. Based on the 4-bit selection term SW, the output is connected to the input where SW matches the case term 4'b0000, 4'b0001 etc. So if SW = 4'b0010, the output UART_TXD = input RS422_3_TX.