You are using a deprecated Browser. Internet Explorer is no longer supported by Xilinx.
XPLA Professional - How do I implement a latch in a CoolRunner device?
Keywords: XPLA, Professional, CoolRunner, fitter, latch
How do I implement a latch, as latches are not directly supported by
The following are PHDL examples for two types of latches. The first is
a latch that implements an asynchronous set and an asynchronous
reset. The second does not implement the set or reset function.
TITLE 'Latch with Asynchronous Set and Reset'
set,reset,enable,d pin ;
q pin istype 'com' ;
q = !reset & (set # (enable & d # !enable & q.com # d & q.com)) ;
d7..d0 pin ;
enable pin ;
q7..q0 pin istype 'com,retain' ;
d = [d7..d0] ;
q = [q7..q0] ;
q = (enable & d) # (!enable & q.com) # (d & q.com) ;
Was this Answer Record helpful?