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.

SystemVerilog Clocking Block assign data time?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hi all,

I use Clocking Block to construct testbench component like driver.
And I am confused with what time Clocking Block to synchronize data.

For example, there is "sync_fifo_if_i" interface instance and "wr_driver_cb" clocking block.
The clocking block is
Code:
//-----
  clocking wr_driver_cb @ (posedge clk);
   default input #setup_time output #hold_time;
        input full,almost_full;
        output din,wr;
  endclocking : wr_driver_cb 
//-----

The data assignment sequence is
Code:
//-----
@(sync_fifo_if_i.wr_driver_cb) 
din <= data_in;
wr <= 1'b1;
@(sync_fifo_if_i.wr_driver_cb) 
//-----

The questions are
1. Will data assignment (synchronize) at the first @... or the second @...theoretically?
2. Is
Code:
@(...) din<=data_in;
and
Code:
@(...); din<=data_in;
(note the ; difference in @) difference?

Thanks!
Best regards,
Davy
 

Davvy ,

Both will do same job.
 

Hi......davyzhu

i want to know abt system verilog as well it will be really great if you upload some books related to system verilog................

i have gone through asic-world.com but i want to practice the programming for it..........

thanks...........
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top