[SOLVED] Values of set/ reset when Instantiating ODDR?

Status
Not open for further replies.

ankit rajput

Newbie level 6
Joined
Apr 9, 2011
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,386
hi,

when we instantiate ODDR then how to provide value to "SRTYPE" and set/reset. I mean for "async" and "sync" in SRTYPE what should be the value in set /reset?
 

Pg 292 - 294 has port description table and RTL instantiation templates to help you out.



thanks for quick reply. I have already seen this document. But I don't understand that suppose "SRTYPE" is ASYNC then what should be the values of set and reset?
 

You set the "SRTYPE" to either "SYNC" or "ASYNC" depending on the reset signal used in your design.
E.g. - If you have a sync reset, then the ODDR inst will look something like this(VHDL):

Code:
        oddr_inst: ODDR
        generic map(
            DDR_CLK_EDGE => "SAME_EDGE",
            INIT         => '0',    -- Initial value for Q port (’1’ or ’0’)
            SRTYPE       => "SYNC"  -- Reset Type ("ASYNC" or "SYNC")        
        )
        port map(
            Q  => txd_o,                           -- o/p data
            C  => clk,                               -- clock
            CE => data_out_enable,          -- enable pin
            D1 => pos_edge_data,           
            D2 => neg_edge_data,
            R  => reset,                           -- sync or async reset 
            S  => '0'
        );

Code snippets are given in the '*InstantiationTemplate', pg 293 and pg 294.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…