heres a pic of my SOPC and of the Blockdiagram
the Code in the own block is simple and not really big ... dunno if its correct but it saves something to the DDR-RAM
reg myState;
reg Data;
reg done;
reg counter;
assign Data = {8'hAF};
always@(posedge CLK50)
begin
if(!done)
begin
controllFIXED <= 0;
controllWriteBase <= 32'h02000000;
controllWriteLenght <= 32'h4;
userBufferInput<= Data;
if(myState == 0)
begin
controllGO<= 1;
end
else
begin
controllGO<= 0;
end
myState <= myState +1;
if(!userBufferFull)
begin
userWriteBuffertoTheMaster<=1;
end
else
begin
userWriteBuffertoTheMaster<=0;
end
if (controllDONE)
begin
myState <= 0;
counter <= counter +1;
end
if (counter >= 2000)
done <= 1;
end
end
http://www2.pic-upload.de/thumb/26.02.10/b8km8hhza9w.jpg (
http://www.pic-upload.de/view-4744440/sopc-2-master.jpg.html)
(
http://www.pic-upload.de/view-4744440/sopc-2-master.jpg.html)
http://www2.pic-upload.de/thumb/26.02.10/vbp6o9q1qbjb.jpg (
http://www.pic-upload.de/view-4744478/sopc-2-master-blocks.jpg.html)