42 // parameter BASEADDR = 0, 45 parameter NUM_XFER_BITS=
6,
// number of bits to specify transfer length 47 parameter CMD_DONE_BIT=
10,
// VDT BUG: CMD_DONE_BIT is used in a function call parameter! 48 parameter RSEL=
1'b1,
// late/early READ commands (to adjust timing by 1 SDCLK period) 49 parameter WSEL=
1'b0 // late/early WRITE commands (to adjust timing by 1 SDCLK period) 53 // programming interface 54 // input [7:0] cmd_ad, // byte-serial command address/data (up to 6 bytes: AL-AH-D0-D1-D2-D3 55 // input cmd_stb, // strobe (with first byte) for the command a/d 59 input [
NUM_XFER_BITS-
1:
0]
num128_in,
// number of 128-bit words to transfer (8*16 bits) - full bursts of 8 ( 0 - maximal length, 64) 61 input start_rd,
// start generating commands by cmd_encod_linear_rd 62 input start_wr,
// start generating commands by cmd_encod_linear_wr 63 output reg start,
// this channel was started (1 clk from start_rd || start_wr 64 output reg [
31:
0]
enc_cmd,
// encoded command 65 output reg enc_wr,
// write encoded command 83 )
cmd_encod_linear_rd_i (
104 )
cmd_encod_linear_wr_i (
118 always @(
posedge clk)
begin 126 always @(
posedge clk)
begin
[NUM_XFER_BITS-1:0] 4004num128_in
[COLADDR_NUMBER-4:0] 4003start_col
[NUM_XFER_BITS-1:0] 4030num128_in
cmd_encod_linear_rd_i cmd_encod_linear_rd
[ADDRESS_NUMBER-1:0] 4002row_in
[COLADDR_NUMBER-4:0] 4029start_col
[NUM_XFER_BITS-1:0] 3955num128_in
[ADDRESS_NUMBER-1:0] 3953row_in
[COLADDR_NUMBER-4:0] 3954start_col
cmd_encod_linear_wr_i cmd_encod_linear_wr
[ADDRESS_NUMBER-1:0] 4028row_in