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.

Moving or deleting array elements in Verilog!

Status
Not open for further replies.

UFK

Member level 3
Joined
Mar 8, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Pakistan
Activity points
1,728
Hi All
I have found out that System Verilog permits manipulating array elements by moving array elements from one element to another and deleting elements too. Does regular Verilog have this option?

In my code, under a certain condition one array is supposed to move a few of its elements to another array. It is doing so alright but it retains the copy of that element. I want it to be moved altogether.

A part of my code is like this

for(i=0;i<=3;i=i+1)

if (LIP >= T)

begin

LSP = LIP;

in this code the value at index i is moved to LSP but a copy remains in LIP. I want it to be removed altogether and shifted to LSP.

Please guide me. Thankyou
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top