3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-30 01:07:14 +00:00

Added xsthammer report generator

This commit is contained in:
Clifford Wolf 2013-07-05 14:21:24 +02:00
parent cd33db25d1
commit 45105faf25
4 changed files with 170 additions and 13 deletions

View file

@ -12,12 +12,14 @@ assign O = I;
endmodule
module GND(G);
output G = 0;
output G;
assign G = 0;
endmodule
module INV(O, I);
input I;
output O = !I;
output O;
assign O = !I;
endmodule
module LUT1(O, I0);
@ -25,7 +27,8 @@ parameter INIT = 0;
input I0;
wire [1:0] lutdata = INIT;
wire [0:0] idx = { I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module LUT2(O, I0, I1);
@ -33,7 +36,8 @@ parameter INIT = 0;
input I0, I1;
wire [3:0] lutdata = INIT;
wire [1:0] idx = { I1, I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module LUT3(O, I0, I1, I2);
@ -41,7 +45,8 @@ parameter INIT = 0;
input I0, I1, I2;
wire [7:0] lutdata = INIT;
wire [2:0] idx = { I2, I1, I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module LUT4(O, I0, I1, I2, I3);
@ -49,7 +54,8 @@ parameter INIT = 0;
input I0, I1, I2, I3;
wire [15:0] lutdata = INIT;
wire [3:0] idx = { I3, I2, I1, I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module LUT5(O, I0, I1, I2, I3, I4);
@ -57,7 +63,8 @@ parameter INIT = 0;
input I0, I1, I2, I3, I4;
wire [31:0] lutdata = INIT;
wire [4:0] idx = { I4, I3, I2, I1, I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module LUT6(O, I0, I1, I2, I3, I4, I5);
@ -65,25 +72,30 @@ parameter INIT = 0;
input I0, I1, I2, I3, I4, I5;
wire [63:0] lutdata = INIT;
wire [5:0] idx = { I5, I4, I3, I2, I1, I0 };
output O = lutdata[idx];
output O;
assign O = lutdata[idx];
endmodule
module MUXCY(O, CI, DI, S);
input CI, DI, S;
output O = S ? CI : DI;
output O;
assign O = S ? CI : DI;
endmodule
module MUXF7(O, I0, I1, S);
input I0, I1, S;
output O = S ? I1 : I0;
output O;
assign O = S ? I1 : I0;
endmodule
module VCC(P);
output P = 1;
output P;
assign P = 1;
endmodule
module XORCY(O, CI, LI);
input CI, LI;
output O = CI ^ LI;
output O;
assign O = CI ^ LI;
endmodule