rrucha
Member level 3
Hi I wanted to know how I will represent this code in hardware. I will explain it with a picture.
I have 8 different inputs to select from. In one clock, I will either choose 4 chunks of it or 2 chunks of it.
I implemented the harware to pick the first 4 inputs and then to pick 2 inputs out of this. I want to know how I will represent the picking mechanism between either 4 inputs of two inputs.
The code will just be
How is this shown in hardware? In code, we will just tap the respective output points.
Also, is there a better way to pick the chunks of inputs than what I have done with the 6 MUXs?
- - - Updated - - -
I wanted to add; Can I make use of the configurable MUX here? Where the select will either choose 4 inputs of 2 inputs in a clock?
I have 8 different inputs to select from. In one clock, I will either choose 4 chunks of it or 2 chunks of it.
I implemented the harware to pick the first 4 inputs and then to pick 2 inputs out of this. I want to know how I will represent the picking mechanism between either 4 inputs of two inputs.
The code will just be
Code:
case (input_sel)
0: begin
dout1 = 1;
dout2 = 2;
dout3 = 3;
dout4 = 4;
end
1: begin
dout1 = 2_1;
dout2 = 2_2;
end
endcase
How is this shown in hardware? In code, we will just tap the respective output points.
Also, is there a better way to pick the chunks of inputs than what I have done with the 6 MUXs?
- - - Updated - - -
I wanted to add; Can I make use of the configurable MUX here? Where the select will either choose 4 inputs of 2 inputs in a clock?
Last edited by a moderator: