MarkMiller
Newbie level 1
- Joined
- Jan 12, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,288
initial clk = 1'b0;
forever #5 clk = ~clk;
default clocking cb @ (posedge clk);
endclocking
========================================
At t=0, clk = 0
At t=5, clk = 1
At t=10, clk = 0
At t=15, clk = 1
...
At t=0, what is cb
At t=5, what is cb
At t=10, what is cb
...
What is the frequency of cb?
##10 is 10 clock cycle of cb
What is the difference between
repeat (10) @(clk)
repeat (10) @(cb)
forever #5 clk = ~clk;
default clocking cb @ (posedge clk);
endclocking
========================================
At t=0, clk = 0
At t=5, clk = 1
At t=10, clk = 0
At t=15, clk = 1
...
At t=0, what is cb
At t=5, what is cb
At t=10, what is cb
...
What is the frequency of cb?
##10 is 10 clock cycle of cb
What is the difference between
repeat (10) @(clk)
repeat (10) @(cb)