electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

SystemVerilog Clocking Block assign data time?


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> SystemVerilog Clocking Block assign data time?
Author Message
davyzhu



Joined: 23 May 2004
Posts: 521
Helped: 3
Location: oriental


Post05 Dec 2006 12:05   

SystemVerilog Clocking Block assign data time?


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
Back to top
spauls



Joined: 17 Dec 2002
Posts: 547
Helped: 19


Post07 Dec 2006 10:22   

Re: SystemVerilog Clocking Block assign data time?


Davvy ,

Both will do same job.
Back to top
Guru59



Joined: 10 Jul 2006
Posts: 235
Helped: 4


Post07 Dec 2006 16:19   

Re: SystemVerilog Clocking Block assign data time?


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...........
Back to top
Google
AdSense
Google Adsense




Post07 Dec 2006 16:19   

Ads




Back to top
davyzhu



Joined: 23 May 2004
Posts: 521
Helped: 3
Location: oriental


Post08 Dec 2006 2:07   

SystemVerilog Clocking Block assign data time?


Hi Guru59,

There is a SystemVerilog Video Seminar that maybe help.
http://www.demosondemand.com/clients/synopsys/systemverilog/index_new.asp

Thanks!
Davy
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> SystemVerilog Clocking Block assign data time?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
What time to use Clocking Block in SystemVerilog? (5)
Explain about Data Setup time Data Hold Time (2)
Data setup time and Data Hold Time (3)
Which takes shorter simualtion time, systemverilog or PLI (1)
data path block (3)
need space time block coding simulation (6)
time space block encoder5 and decoder (1)
sharing data block in c and assembly (1)
Store data in Block RAM on FPGA (5)
information on space time block codes from orthogonal design (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS