Re: Everything need a reset?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View

Quoted text here. Click to load it
'0'

There are designs that in reality don't need a reset, but do in simulation.
Others need a reset in both cases.

-- glen



Re: Everything need a reset?
Really good idea.
but it can't cover all the situation, when I want to divide the clock by 4,
8...
maybe use glbl.GSR is a common solution.
??????: snipped-for-privacy@posting.google.com...
Quoted text here. Click to load it
'0'



Re: Everything need a reset?
Quoted text here. Click to load it

I change the code to
    reg clkout;
    wire GSR;

    always@(posedge clkin)
    begin
        if(GSR == 1)
            clkout <= 0;
        else
            clkout <= ~clkout;
    end

thus in testbench I can give the clkout a initial value.
the simulation can work now.

but I still a little confuse about what you say:
the .GSR can "initializing all the register primitives to the power-on values."
how can it achieve this?
Do I miss someting important?

Site Timeline