p; //wb_ack_o=0; 129. end 130. 131. nextstat=idle; 132. end 133. 134. operate: 135. begin 136. Result=Cal_A+Cal_B; 137. A_Status=0; 138. B_Status=0; 139. R_Status=1'b1; 140. nextstat=idle; 141. wb_dat_o=0; 142. //wb_ack_o=0; 143. end 144. 145. default: 146. begin 147. Cal_A=0; 148. Cal_B=0; 149. R_Status=0; 150. A_Status=0; 151. B_Status=0; 152. R_Status=0; 153. wb_dat_o=0; 154. //wb_ack_o=0; 155. nextstat=idle; 156. end 157. 158. endcase 159. 160.always @(posedge wb_clk) 161. if(wb_rst) 162. begin 163. wb_ack_o<=0; 164. end 165. else if(wb_stb_i & !wb_ack_o & (wb_adr_i[31:24]==8'b10010111)) 166. begin 167. &上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|