# Have Question on verilog

Status
Not open for further replies.

#### vcnvcc

##### Full Member level 2
Can you help me understanding this

Code:
my_ByteSel = {8’d3, 8’d3}

WIDTH = 8
my_pointer (value) 	 WIDTH * (value) +: WIDTH

Wire [10:0] my_counter;

this is what I would like to understand -->

my_counter(my_ByteSel[my_pointer(i)])
assume that value will take  0 and 1 – only two values.

Thanks..

##### Super Moderator
Staff member
Code:
my_ByteSel = {8’d3, 8’d3}

WIDTH = 8
my_pointer (value) 	 WIDTH * (value) +: WIDTH

Wire [10:0] my_counter;

this is what I would like to understand -->

my_counter(my_ByteSel[my_pointer(i)])
assume that value will take  0 and 1 – only two values.

Thanks..
Where did you get this code snippet from, the code isn't even legal Verilog? Is this something you wrote that you are trying to make work?

The way this is written makes me think that the approach used is based on software concepts and isn't being written with an understanding of hardware.

#### Mohammed_Verification

##### Full Member level 2
Hi,
Post your specification or the problem clearly. the code seems to be your idea not the synthesizeable one.

#### raghavkmr

##### Junior Member level 2
hey where did u got this ,cant understand the question well

Status
Not open for further replies.

Replies
7
Views
7K
Replies
1
Views
1K
Replies
5
Views
930
Replies
0
Views
833
Replies
0
Views
848