jameela
Junior Member level 2
error:HDLCompilers:217 Integer constant '10101010101010101010101010101010' is too large to represent in 32 bits
help me to remove it
module inter1(out1,ins1,inp,inclk,clr,outclk);
input inclk,clr,ins1,outclk;
output inp,out1;
//wire [31:0]s1;
reg [31:0]s2;
integer s1;
reg ins;
reg [1023:0]out,out1;
reg [1024:1] inp;
parameter a=1 ,b=3*a ,c=b-1;
initial
s1<={10101010101010101010101010101010};
always@(posedge outclk)
begin
if (ins1==0)
s2<=~s1;
else
s2<=s1;
end
always@(posedge inclk )
begin
if(clr) inp<=0;
else
begin
inp[1024:2]<=inp[1023:1];
inp[1]<=s2;
end
#32;
end
help me to remove it
module inter1(out1,ins1,inp,inclk,clr,outclk);
input inclk,clr,ins1,outclk;
output inp,out1;
//wire [31:0]s1;
reg [31:0]s2;
integer s1;
reg ins;
reg [1023:0]out,out1;
reg [1024:1] inp;
parameter a=1 ,b=3*a ,c=b-1;
initial
s1<={10101010101010101010101010101010};
always@(posedge outclk)
begin
if (ins1==0)
s2<=~s1;
else
s2<=s1;
end
always@(posedge inclk )
begin
if(clr) inp<=0;
else
begin
inp[1024:2]<=inp[1023:1];
inp[1]<=s2;
end
#32;
end