Hey,
i use the template to get an block in QSYS now im tryin to interact with the user/control interface.
wire [31:0] data [0:4]; // 4 Byte Datenfeld
wire control_fixed_location;
wire control_write_base;
wire control_write_length;
wire control_go;
wire data_to_buffer;
assign control_fixed_location = 1'b0;
assign control_write_base = 32'h0FFFFFAA;
assign control_write_length = 4;
assign control_go = 1'b0;
assign data_to_buffer = 1'b0;
assign data[0] = 32'hAABBAAFF;
assign data[1] = 32'hAABBAAFE;
assign data[2] = 32'hAABBAAFD;
assign data[3] = 32'hAABBAAFC;
always @(posedge button_pio[0])
begin
assign data_to_buffer = 1'b1;
# 1 assign data_to_buffer = 1'b0;
end
always @(posedge button_pio[1])
begin
assign control_go = 1'b1;
# 1 assign control_go = 1'b0;
end
Is that code right or did i make some mistakes? Im not sure how long to toogle control go and data_to_buffer. Is one clk cycle right?