zhiling0229
Member level 1
Hi,
I'm a noob in verilog language, I was looking through a verilog code an encounter this expression:
parameter DATA_WIDTH = 72
reg [DATA_WIDTH - 1: 0] data;
reg [DATA_WIDTH - 1: 0] ndata;
wire [1:0] data_background
data <= { (DATA_WIDTH + 1) / 2 {data_background}};
ndata <= { (DATA_WIDTH + 1) / 2{~data_background}};
The signal that is going into data_background is 2 b'11
Can anyone help me explain how the not is performed for ~data_background and what does the curly braces means for this case?
Can anyone help me to provide me with the expected output of data and ndata?
Thanks a million
I'm a noob in verilog language, I was looking through a verilog code an encounter this expression:
parameter DATA_WIDTH = 72
reg [DATA_WIDTH - 1: 0] data;
reg [DATA_WIDTH - 1: 0] ndata;
wire [1:0] data_background
data <= { (DATA_WIDTH + 1) / 2 {data_background}};
ndata <= { (DATA_WIDTH + 1) / 2{~data_background}};
The signal that is going into data_background is 2 b'11
Can anyone help me explain how the not is performed for ~data_background and what does the curly braces means for this case?
Can anyone help me to provide me with the expected output of data and ndata?
Thanks a million