May 13, 2015 #1 V vcnvcc 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..
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..
May 13, 2015 #2 ads-ee Super Moderator Staff member Joined Sep 10, 2013 Messages 7,944 Helped 1,822 Reputation 3,654 Reaction score 1,808 Trophy points 1,393 Location USA Activity points 60,207 vcnvcc said: 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.. Click to expand... 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.
vcnvcc said: 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.. Click to expand... 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.
May 18, 2015 #3 M Mohammed_Verification 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.
Hi, Post your specification or the problem clearly. the code seems to be your idea not the synthesizeable one.
May 19, 2015 #4 R raghavkmr 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