User`s manual
104 //////////////////////////////////////////////////////////////////////
105 8’h00:
106 begin
107 // Issue "read id codes" command
108 status <= ‘STATUS_READ_ID;
109 faddress <= 0;
110 fwdata <= 16’h0090;
111 fop <= ‘FLASHOP_WRITE;
112 state <= state+1;
113 end
114
115 8’h01:
116 begin
117 // Read manufacturer code
118 faddress <= 0;
119 fop <= ‘FLASHOP_READ;
120 state <= state+1;
121 end
122
123 8’h02:
124 if (frdata != 16’h0089) // 16’h0089 = Intel
125 status <= ‘STATUS_BAD_MANUFACTURER;
126 else
127 begin
128 // Read the device size code
129 faddress <= 1;
130 fop <= ‘FLASHOP_READ;
131 state <= state+1;
132 end
133
134 8’h03:
135 if (frdata != 16’h0018) // 16’h0018 = 128Mbit
136 status <= ‘STATUS_BAD_SIZE;
137 else
138 begin
139 faddress <= 0;
140 fwdata <= 16’hFF;
141 fop <= ‘FLASHOP_WRITE;
142 state <= state+1;
143 end
144
145 8’h04:
146 begin
147 // Issue "clear lock bits" command
148 status <= ‘STATUS_CLEAR_LOCKS;
149 faddress <= 0;
76