Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Have Question on verilog

Status
Not open for further replies.

vcnvcc

Full Member level 2
Full Member level 2
Joined
Jul 21, 2006
Messages
132
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
2,210
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..
 

ads-ee

Super Moderator
Staff member
Advanced Member level 7
Joined
Sep 10, 2013
Messages
7,942
Helped
1,822
Reputation
3,654
Reaction score
1,807
Trophy points
1,393
Location
USA
Activity points
60,185
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
Full Member level 2
Joined
Sep 3, 2013
Messages
122
Helped
12
Reputation
24
Reaction score
12
Trophy points
18
Location
India
Activity points
602
Hi,
Post your specification or the problem clearly. the code seems to be your idea not the synthesizeable one.
 

raghavkmr

Junior Member level 2
Junior Member level 2
Joined
Nov 26, 2013
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
194
hey where did u got this ,cant understand the question well
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top