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.

[SOLVED] NOP (no operation) in verilog?

Status
Not open for further replies.

krishanu007

Member level 2
Member level 2
Joined
Apr 8, 2010
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Bangalore,India
Activity points
1,594
I am writing testbench for mu modules,
I am trying to have a block with no operation,
is there any normal NOP operation available for writing a testbench.:shock: ?
it should be there because testbench gets compiled to native code in computer & a processor have a NOP inbuilt.:???:
 

it should be there because testbench gets compiled to native code in computer & a processor have a NOP inbuilt.:???:

operations in machine languange and high level language are not mapped one by one.

Explain what you are trying to do with 'NOP' and there may be an alternative solution.
 

Verilog is a hardware description language where you actually describe the behavior of the hardware, a NOP would be the equivalent of nothing so it doesn't make sense.

Alex
 

Verilog is a hardware description language where you actually describe the behavior of the hardware, a NOP would be the equivalent of nothing so it doesn't make sense.

Alex
you are true..but only 30% of verilog is synthesizable,other parts are for testing only.I completed my implementation & going on the testbench.
if fork & join makes sense in verilog,then why not NOP.

---------- Post added at 07:57 ---------- Previous post was at 07:56 ----------

operations in machine languange and high level language are not mapped one by one.

Explain what you are trying to do with 'NOP' and there may be an alternative solution.
so its not there...:(..
ya thats true that theres can be other ways..But if it was there some things could have been made easy.(in TB)
 

First, verilog is not instruction based.. There is no such concept as instruction.
Second, verilog simulation is event driven, and if no event is present, nothing happens and I don't see what the problem is with making some event not happen.

fork&join is useful, NOP not at all.
 

what about
#0;
This is pretty much a "nop" operation. What do you reckon?
 
A NOP instruction is a misnomer, it is an operation that consumes time and power.

A NOP in your testbench either means sending your DUT a NOP instruction, or setting all the pins to a state that makes the DUT do nothing for the period of time you want.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top