diff options
author | Lofty <dan.ravensloft@gmail.com> | 2022-02-24 20:29:43 +0000 |
---|---|---|
committer | Lofty <dan.ravensloft@gmail.com> | 2022-02-24 20:38:56 +0000 |
commit | fbb02e286047108dbfbd6bd71cddc777a6752ecf (patch) | |
tree | 316cbbac172ddec7a2f0e7383f60911fe0ebbfd3 /generic/viaduct/okami/okami_map.v | |
parent | 440d7e394e5643a59dbd5a4b7af47a1c8902d7a0 (diff) | |
download | nextpnr-fbb02e286047108dbfbd6bd71cddc777a6752ecf.tar.gz nextpnr-fbb02e286047108dbfbd6bd71cddc777a6752ecf.tar.bz2 nextpnr-fbb02e286047108dbfbd6bd71cddc777a6752ecf.zip |
okami: new Viaduct arch
Diffstat (limited to 'generic/viaduct/okami/okami_map.v')
-rw-r--r-- | generic/viaduct/okami/okami_map.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generic/viaduct/okami/okami_map.v b/generic/viaduct/okami/okami_map.v new file mode 100644 index 00000000..f701f0ed --- /dev/null +++ b/generic/viaduct/okami/okami_map.v @@ -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 |