1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-28 12:57:13 +00:00

Viaduct API for a hybrid between generic and full-custom arch

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat
2021-12-30 13:18:34 +00:00
parent 089ca8258e
commit e88bd34c02
18 changed files with 1055 additions and 28 deletions

View File

@@ -0,0 +1,12 @@
module \$lut (A, Y);
parameter WIDTH = 0;
parameter LUT = 0;
input [WIDTH-1:0] A;
output Y;
localparam rep = 1<<(4-WIDTH);
LUT4 #(.INIT({rep{LUT}})) _TECHMAP_REPLACE_ (.I(A), .F(Y));
endmodule
module \$_DFF_P_ (input D, C, output Q); DFF _TECHMAP_REPLACE_ (.D(D), .Q(Q), .CLK(C)); endmodule