User`s manual

77
78 reg writemode = 0; // 1=write mode; 0=read mode
79 reg [15:0] wdata = 0; // writeData
80 reg dowrite = 0; // 1=new data, write it
81 reg [22:0] raddr = 2; // readAddress
82 wire [15:0] frdata; // readData
83 reg doread = 0; // 1=execute read
84
85 flash_manager fm(
86 .clock(clock),
87 .reset(reset),
88
89 // Interface I/O
90 .writemode(writemode),
91 .wdata(wdata),
92 .dowrite(dowrite),
93 .raddr(raddr),
94 .frdata(frdata),
95 .doread(doread),
96 .busy(busy),
97
98 // Flash I/O
99 .flash_data(flash_data),
100 .flash_address(flash_address),
101 .flash_ce_b(flash_ce_b),
102 .flash_oe_b(flash_oe_b),
103 .flash_we_b(flash_we_b),
104 .flash_reset_b(flash_reset_b),
105 .flash_sts(flash_sts),
106 .flash_byte_b(flash_byte_b)
107 );
108
109 wire [7:0] out;// data from FIFO (OUTPUT)
110 wire newout; // newout=1 out contains new data (OUTPUT)
111 wire hold; // hold=1 the module will not accept new data from the FIFO
112
113 assign hold = 1’b0;
114
115 usb_input usbtest(
116 .clk(clock),
117 .reset(reset),
118
119 // USB FTDI I/O
120 .data(data[7:0]),
121 .rxf(rxf),
122 .rd(rd),
237