URL
https://opencores.org/ocsvn/nlprg/nlprg/trunk
Subversion Repositories nlprg
[/] [nlprg/] [trunk/] [nlprg/] [rtl/] [nlprg16.v] - Rev 4
Compare with Previous | Blame | View Log
/* * Generated by Digital. Don't modify this file! * Any changes will be lost if this file is regenerated. */ module DIG_D_FF_AS_1bit #( parameter Default = 0 ) ( input Set, input D, input C, input Clr, output Q, output \~Q ); reg state; assign Q = state; assign \~Q = ~state; always @ (posedge C or posedge Clr or posedge Set) begin if (Set) state <= 1'b1; else if (Clr) state <= 'h0; else state <= D; end initial begin state = Default; end endmodule module nlprg16 ( input ck, input rst, output [15:0] o ); wire o0; wire s0; wire s1; wire o5; wire o1; wire s2; wire o2; wire s3; wire o3; wire s4; wire o4; wire s5; wire o7; wire o6; wire o8; wire o9; wire o10; wire o11; wire o12; wire o13; wire o14; wire o15; DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i0 ( .Set( 1'b0 ), .D( s1 ), .C( ck ), .Clr( rst ), .Q( o0 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i1 ( .Set( 1'b0 ), .D( s0 ), .C( ck ), .Clr( rst ), .Q( o1 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i2 ( .Set( 1'b0 ), .D( s2 ), .C( ck ), .Clr( rst ), .Q( o2 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i3 ( .Set( 1'b0 ), .D( s3 ), .C( ck ), .Clr( rst ), .Q( o3 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i4 ( .Set( 1'b0 ), .D( s4 ), .C( ck ), .Clr( rst ), .Q( o4 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i5 ( .Set( 1'b0 ), .D( s5 ), .C( ck ), .Clr( rst ), .Q( o5 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i6 ( .Set( 1'b0 ), .D( o5 ), .C( ck ), .Clr( rst ), .Q( o6 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i7 ( .Set( 1'b0 ), .D( o6 ), .C( ck ), .Clr( rst ), .Q( o7 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i8 ( .Set( 1'b0 ), .D( o7 ), .C( ck ), .Clr( rst ), .Q( o8 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i9 ( .Set( 1'b0 ), .D( o8 ), .C( ck ), .Clr( rst ), .Q( o9 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i10 ( .Set( 1'b0 ), .D( o9 ), .C( ck ), .Clr( rst ), .Q( o10 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i11 ( .Set( 1'b0 ), .D( o10 ), .C( ck ), .Clr( rst ), .Q( o11 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i12 ( .Set( 1'b0 ), .D( o11 ), .C( ck ), .Clr( rst ), .Q( o12 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i13 ( .Set( 1'b0 ), .D( o12 ), .C( ck ), .Clr( rst ), .Q( o13 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i14 ( .Set( 1'b0 ), .D( o13 ), .C( ck ), .Clr( rst ), .Q( o14 ) ); DIG_D_FF_AS_1bit #( .Default(0) ) DIG_D_FF_AS_1bit_i15 ( .Set( 1'b0 ), .D( o14 ), .C( ck ), .Clr( rst ), .Q( o15 ) ); assign s0 = ((o12 ^ o13) ^ o0); assign s1 = ~ ((o14 ^ o15) ^ o5); assign s2 = ((o10 ^ o11) ^ o1); assign s3 = ((o8 ^ o9) ^ o2); assign s4 = ((o6 ^ o7) ^ o3); assign s5 = (~ (o7 ^ o4) ^ (((o3 & o2) & (o1 & o0)) & ((((~ (o15 | o14) & ~ (o13 | o12)) & (~ (o11 | o10) & ~ (o9 | o8))) & ~ (o7 | o6)) & ~ o5))); assign o[0] = o0; assign o[1] = o1; assign o[2] = o2; assign o[3] = o3; assign o[4] = o4; assign o[5] = o5; assign o[6] = o6; assign o[7] = o7; assign o[8] = o8; assign o[9] = o9; assign o[10] = o10; assign o[11] = o11; assign o[12] = o12; assign o[13] = o13; assign o[14] = o14; assign o[15] = o15; endmodule