File tree Expand file tree Collapse file tree 9 files changed +134
-2
lines changed Expand file tree Collapse file tree 9 files changed +134
-2
lines changed Original file line number Diff line number Diff line change 11from siliconcompiler import Design
22
33from .la_vbuf .la_vbuf import Vbuf
4+ from .la_ldffnq .la_ldffnq import Vdffnq
5+ from .la_ldffq .la_ldffq import Vdffq
46from .la_vinv .la_vinv import Vinv
7+ from .la_latnq .la_latnq import Vlatnq
8+ from .la_latq .la_latq import Vlatq
59from .la_vmux .la_vmux import Vmux
610from .la_vmux2b .la_vmux2b import Vmux2b
711from .la_vmux2 .la_vmux2 import Vmux2
1115from .la_vmux6 .la_vmux6 import Vmux6
1216from .la_vmux7 .la_vmux7 import Vmux7
1317from .la_vmux8 .la_vmux8 import Vmux8
14- from .la_vpriority .la_vpriority import Vpriority
1518
1619__all__ = ['Vbuf' ,
20+ 'Vdffnq' ,
21+ 'Vdffq' ,
1722 'Vinv' ,
23+ 'Vlatnq' ,
24+ 'Vlatq' ,
1825 'Vmux' ,
1926 'Vmux2' ,
2027 'Vmux2b' ,
2431 'Vmux6' ,
2532 'Vmux7' ,
2633 'Vmux8' ,
27- 'Vpriority'
2834 ]
2935
3036
Original file line number Diff line number Diff line change 1+ from lambdalib .lambdalib import Lambda
2+
3+
4+ class Vdffnq (Lambda ):
5+ def __init__ (self ):
6+ name = 'la_dffnq'
7+ super ().__init__ (name , __file__ )
8+
9+
10+ if __name__ == "__main__" :
11+ d = Vdffnq ()
12+ d .write_fileset (f"{ d .name } .f" , fileset = "rtl" )
Original file line number Diff line number Diff line change 1+ // #############################################################################
2+ // # Function: Vectorized negative edge-triggered static D-type flop-flop #
3+ // # Copyright: Lambda Project Authors. All rights Reserved. #
4+ // # License: MIT (see LICENSE file in Lambda repository) #
5+ // #############################################################################
6+
7+ module la_dffnq #(parameter W = 1 , // width of mux
8+ parameter PROP = "" // cell property
9+ )
10+ (
11+ input [W- 1 :0 ] d,
12+ input clk,
13+ output reg [W- 1 :0 ] q
14+ );
15+
16+ always @(negedge clk)
17+ q <= d;
18+
19+ endmodule
Original file line number Diff line number Diff line change 1+ from lambdalib .lambdalib import Lambda
2+
3+
4+ class Vdffq (Lambda ):
5+ def __init__ (self ):
6+ name = 'la_dffq'
7+ super ().__init__ (name , __file__ )
8+
9+
10+ if __name__ == "__main__" :
11+ d = Vdffq ()
12+ d .write_fileset (f"{ d .name } .f" , fileset = "rtl" )
Original file line number Diff line number Diff line change 1+ // #############################################################################
2+ // # Function: Vectorized positive edge-triggered static D-type flop-flop #
3+ // # Copyright: Lambda Project Authors. All rights Reserved. #
4+ // # License: MIT (see LICENSE file in Lambda repository) #
5+ // #############################################################################
6+
7+ module la_vdffq #(parameter W = 1 , // width of mux
8+ parameter PROP = "" // cell property
9+ )
10+ (
11+ input [W- 1 :0 ] d,
12+ input clk,
13+ output reg [W- 1 :0 ] q
14+ );
15+
16+ always @(posedge clk)
17+ q <= d;
18+
19+ endmodule
Original file line number Diff line number Diff line change 1+ from lambdalib .lambdalib import Lambda
2+
3+
4+ class Vlatnq (Lambda ):
5+ def __init__ (self ):
6+ name = 'la_vlatnq'
7+ super ().__init__ (name , __file__ )
8+
9+
10+ if __name__ == "__main__" :
11+ d = Vlatnq ()
12+ d .write_fileset (f"{ d .name } .f" , fileset = "rtl" )
Original file line number Diff line number Diff line change 1+ // #############################################################################
2+ // # Function: Vectorized D-type active-low transparent latch #
3+ // # Copyright: Lambda Project Authors. All rights Reserved. #
4+ // # License: MIT (see LICENSE file in Lambda repository) #
5+ // #############################################################################
6+
7+ module la_vlatnq #(parameter W = 1 , // width of mux
8+ parameter PROP = "" // cell property
9+ )
10+ (
11+ input [W- 1 :0 ] d,
12+ input clk,
13+ output reg [W- 1 :0 ] q
14+ );
15+
16+ always @(clk or d)
17+ if (~ clk)
18+ q <= d;
19+
20+ endmodule
Original file line number Diff line number Diff line change 1+ from lambdalib .lambdalib import Lambda
2+
3+
4+ class Vlatnq (Lambda ):
5+ def __init__ (self ):
6+ name = 'la_vlatq'
7+ super ().__init__ (name , __file__ )
8+
9+
10+ if __name__ == "__main__" :
11+ d = Vlatq ()
12+ d .write_fileset (f"{ d .name } .f" , fileset = "rtl" )
Original file line number Diff line number Diff line change 1+ // #############################################################################
2+ // # Function: Vectorized D-type active-high transparent latch #
3+ // # Copyright: Lambda Project Authors. All rights Reserved. #
4+ // # License: MIT (see LICENSE file in Lambda repository) #
5+ // #############################################################################
6+
7+ module la_vlatq #(parameter W = 1 , // width of mux
8+ parameter PROP = "" // cell property
9+ )
10+ (
11+ input [W- 1 :0 ] d,
12+ input clk,
13+ output reg [W- 1 :0 ] q
14+ );
15+
16+ always @ (clk or d)
17+ if (clk)
18+ q <= d;
19+
20+ endmodule
You can’t perform that action at this time.
0 commit comments