farklempt
Newbie level 4
What does a code that looks like that do:
module unknown
#(parameter par = 200)
(
input [par-1 : 0] dout;
reg [15:0] decoder;
assign s_port = dout[200-1 -:8]
always @(*) begin
decoder = 0;
decoder[s_port] = 1'b1;
end
....
I have the following questions:
1.) What are the parameters that the always statement is monitoring? @(*)
2.) How come that decoder is defined as 0 and 1'b'1 at the same time?
3.) How come that a 16 bit decoder decodes just 8 bit. where are this 8 bit? are they 15 downto 8, 14 downto 7 ... 7 downto 0?
module unknown
#(parameter par = 200)
(
input [par-1 : 0] dout;
reg [15:0] decoder;
assign s_port = dout[200-1 -:8]
always @(*) begin
decoder = 0;
decoder[s_port] = 1'b1;
end
....
I have the following questions:
1.) What are the parameters that the always statement is monitoring? @(*)
2.) How come that decoder is defined as 0 and 1'b'1 at the same time?
3.) How come that a 16 bit decoder decodes just 8 bit. where are this 8 bit? are they 15 downto 8, 14 downto 7 ... 7 downto 0?