aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct/example/example_map.v
blob: f701f0ed7aa792f326dcffc975161a3fa8397b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
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