⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wb_dma_rf.v

📁 DMA的实现,通过此文件以及后面的文件可以实现DMA,可以在CPU之外工作.
💻 V
📖 第 1 页 / 共 5 页
字号:
	   8'h20:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_csr    : 32'h0;	   8'h21:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_txsz   : 32'h0;	   8'h22:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_adr0   : 32'h0;	   8'h23:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_am0    : 32'h0;	   8'h24:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_adr1   : 32'h0;	   8'h25:	wb_rf_dout <= #1 ch3_conf[0] ? ch3_am1    : 32'h0;	   8'h26:	wb_rf_dout <= #1 ch3_conf[0] ? pointer3   : 32'h0;	   8'h27:	wb_rf_dout <= #1 ch3_conf[0] ? sw_pointer3   : 32'h0;	   8'h28:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_csr    : 32'h0;	   8'h29:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_txsz   : 32'h0;	   8'h2a:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_adr0   : 32'h0;	   8'h2b:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_am0    : 32'h0;	   8'h2c:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_adr1   : 32'h0;	   8'h2d:	wb_rf_dout <= #1 ch4_conf[0] ? ch4_am1    : 32'h0;	   8'h2e:	wb_rf_dout <= #1 ch4_conf[0] ? pointer4   : 32'h0;	   8'h2f:	wb_rf_dout <= #1 ch4_conf[0] ? sw_pointer4   : 32'h0;	   8'h30:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_csr    : 32'h0;	   8'h31:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_txsz   : 32'h0;	   8'h32:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_adr0   : 32'h0;	   8'h33:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_am0    : 32'h0;	   8'h34:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_adr1   : 32'h0;	   8'h35:	wb_rf_dout <= #1 ch5_conf[0] ? ch5_am1    : 32'h0;	   8'h36:	wb_rf_dout <= #1 ch5_conf[0] ? pointer5   : 32'h0;	   8'h37:	wb_rf_dout <= #1 ch5_conf[0] ? sw_pointer5   : 32'h0;	   8'h38:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_csr    : 32'h0;	   8'h39:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_txsz   : 32'h0;	   8'h3a:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_adr0   : 32'h0;	   8'h3b:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_am0    : 32'h0;	   8'h3c:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_adr1   : 32'h0;	   8'h3d:	wb_rf_dout <= #1 ch6_conf[0] ? ch6_am1    : 32'h0;	   8'h3e:	wb_rf_dout <= #1 ch6_conf[0] ? pointer6   : 32'h0;	   8'h3f:	wb_rf_dout <= #1 ch6_conf[0] ? sw_pointer6   : 32'h0;	   8'h40:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_csr    : 32'h0;	   8'h41:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_txsz   : 32'h0;	   8'h42:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_adr0   : 32'h0;	   8'h43:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_am0    : 32'h0;	   8'h44:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_adr1   : 32'h0;	   8'h45:	wb_rf_dout <= #1 ch7_conf[0] ? ch7_am1    : 32'h0;	   8'h46:	wb_rf_dout <= #1 ch7_conf[0] ? pointer7   : 32'h0;	   8'h47:	wb_rf_dout <= #1 ch7_conf[0] ? sw_pointer7   : 32'h0;	   8'h48:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_csr    : 32'h0;	   8'h49:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_txsz   : 32'h0;	   8'h4a:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_adr0   : 32'h0;	   8'h4b:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_am0    : 32'h0;	   8'h4c:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_adr1   : 32'h0;	   8'h4d:	wb_rf_dout <= #1 ch8_conf[0] ? ch8_am1    : 32'h0;	   8'h4e:	wb_rf_dout <= #1 ch8_conf[0] ? pointer8   : 32'h0;	   8'h4f:	wb_rf_dout <= #1 ch8_conf[0] ? sw_pointer8   : 32'h0;	   8'h50:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_csr    : 32'h0;	   8'h51:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_txsz   : 32'h0;	   8'h52:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_adr0   : 32'h0;	   8'h53:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_am0    : 32'h0;	   8'h54:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_adr1   : 32'h0;	   8'h55:	wb_rf_dout <= #1 ch9_conf[0] ? ch9_am1    : 32'h0;	   8'h56:	wb_rf_dout <= #1 ch9_conf[0] ? pointer9   : 32'h0;	   8'h57:	wb_rf_dout <= #1 ch9_conf[0] ? sw_pointer9   : 32'h0;	   8'h58:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_csr    : 32'h0;	   8'h59:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_txsz   : 32'h0;	   8'h5a:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_adr0   : 32'h0;	   8'h5b:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_am0    : 32'h0;	   8'h5c:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_adr1   : 32'h0;	   8'h5d:	wb_rf_dout <= #1 ch10_conf[0] ? ch10_am1    : 32'h0;	   8'h5e:	wb_rf_dout <= #1 ch10_conf[0] ? pointer10   : 32'h0;	   8'h5f:	wb_rf_dout <= #1 ch10_conf[0] ? sw_pointer10   : 32'h0;	   8'h60:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_csr    : 32'h0;	   8'h61:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_txsz   : 32'h0;	   8'h62:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_adr0   : 32'h0;	   8'h63:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_am0    : 32'h0;	   8'h64:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_adr1   : 32'h0;	   8'h65:	wb_rf_dout <= #1 ch11_conf[0] ? ch11_am1    : 32'h0;	   8'h66:	wb_rf_dout <= #1 ch11_conf[0] ? pointer11   : 32'h0;	   8'h67:	wb_rf_dout <= #1 ch11_conf[0] ? sw_pointer11   : 32'h0;	   8'h68:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_csr    : 32'h0;	   8'h69:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_txsz   : 32'h0;	   8'h6a:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_adr0   : 32'h0;	   8'h6b:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_am0    : 32'h0;	   8'h6c:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_adr1   : 32'h0;	   8'h6d:	wb_rf_dout <= #1 ch12_conf[0] ? ch12_am1    : 32'h0;	   8'h6e:	wb_rf_dout <= #1 ch12_conf[0] ? pointer12   : 32'h0;	   8'h6f:	wb_rf_dout <= #1 ch12_conf[0] ? sw_pointer12   : 32'h0;	   8'h70:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_csr    : 32'h0;	   8'h71:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_txsz   : 32'h0;	   8'h72:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_adr0   : 32'h0;	   8'h73:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_am0    : 32'h0;	   8'h74:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_adr1   : 32'h0;	   8'h75:	wb_rf_dout <= #1 ch13_conf[0] ? ch13_am1    : 32'h0;	   8'h76:	wb_rf_dout <= #1 ch13_conf[0] ? pointer13   : 32'h0;	   8'h77:	wb_rf_dout <= #1 ch13_conf[0] ? sw_pointer13   : 32'h0;	   8'h78:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_csr    : 32'h0;	   8'h79:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_txsz   : 32'h0;	   8'h7a:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_adr0   : 32'h0;	   8'h7b:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_am0    : 32'h0;	   8'h7c:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_adr1   : 32'h0;	   8'h7d:	wb_rf_dout <= #1 ch14_conf[0] ? ch14_am1    : 32'h0;	   8'h7e:	wb_rf_dout <= #1 ch14_conf[0] ? pointer14   : 32'h0;	   8'h7f:	wb_rf_dout <= #1 ch14_conf[0] ? sw_pointer14   : 32'h0;	   8'h80:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_csr    : 32'h0;	   8'h81:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_txsz   : 32'h0;	   8'h82:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_adr0   : 32'h0;	   8'h83:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_am0    : 32'h0;	   8'h84:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_adr1   : 32'h0;	   8'h85:	wb_rf_dout <= #1 ch15_conf[0] ? ch15_am1    : 32'h0;	   8'h86:	wb_rf_dout <= #1 ch15_conf[0] ? pointer15   : 32'h0;	   8'h87:	wb_rf_dout <= #1 ch15_conf[0] ? sw_pointer15   : 32'h0;	   8'h88:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_csr    : 32'h0;	   8'h89:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_txsz   : 32'h0;	   8'h8a:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_adr0   : 32'h0;	   8'h8b:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_am0    : 32'h0;	   8'h8c:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_adr1   : 32'h0;	   8'h8d:	wb_rf_dout <= #1 ch16_conf[0] ? ch16_am1    : 32'h0;	   8'h8e:	wb_rf_dout <= #1 ch16_conf[0] ? pointer16   : 32'h0;	   8'h8f:	wb_rf_dout <= #1 ch16_conf[0] ? sw_pointer16   : 32'h0;	   8'h90:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_csr    : 32'h0;	   8'h91:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_txsz   : 32'h0;	   8'h92:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_adr0   : 32'h0;	   8'h93:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_am0    : 32'h0;	   8'h94:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_adr1   : 32'h0;	   8'h95:	wb_rf_dout <= #1 ch17_conf[0] ? ch17_am1    : 32'h0;	   8'h96:	wb_rf_dout <= #1 ch17_conf[0] ? pointer17   : 32'h0;	   8'h97:	wb_rf_dout <= #1 ch17_conf[0] ? sw_pointer17   : 32'h0;	   8'h98:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_csr    : 32'h0;	   8'h99:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_txsz   : 32'h0;	   8'h9a:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_adr0   : 32'h0;	   8'h9b:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_am0    : 32'h0;	   8'h9c:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_adr1   : 32'h0;	   8'h9d:	wb_rf_dout <= #1 ch18_conf[0] ? ch18_am1    : 32'h0;	   8'h9e:	wb_rf_dout <= #1 ch18_conf[0] ? pointer18   : 32'h0;	   8'h9f:	wb_rf_dout <= #1 ch18_conf[0] ? sw_pointer18   : 32'h0;	   8'ha0:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_csr    : 32'h0;	   8'ha1:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_txsz   : 32'h0;	   8'ha2:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_adr0   : 32'h0;	   8'ha3:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_am0    : 32'h0;	   8'ha4:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_adr1   : 32'h0;	   8'ha5:	wb_rf_dout <= #1 ch19_conf[0] ? ch19_am1    : 32'h0;	   8'ha6:	wb_rf_dout <= #1 ch19_conf[0] ? pointer19   : 32'h0;	   8'ha7:	wb_rf_dout <= #1 ch19_conf[0] ? sw_pointer19   : 32'h0;	   8'ha8:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_csr    : 32'h0;	   8'ha9:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_txsz   : 32'h0;	   8'haa:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_adr0   : 32'h0;	   8'hab:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_am0    : 32'h0;	   8'hac:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_adr1   : 32'h0;	   8'had:	wb_rf_dout <= #1 ch20_conf[0] ? ch20_am1    : 32'h0;	   8'hae:	wb_rf_dout <= #1 ch20_conf[0] ? pointer20   : 32'h0;	   8'haf:	wb_rf_dout <= #1 ch20_conf[0] ? sw_pointer20   : 32'h0;	   8'hb0:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_csr    : 32'h0;	   8'hb1:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_txsz   : 32'h0;	   8'hb2:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_adr0   : 32'h0;	   8'hb3:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_am0    : 32'h0;	   8'hb4:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_adr1   : 32'h0;	   8'hb5:	wb_rf_dout <= #1 ch21_conf[0] ? ch21_am1    : 32'h0;	   8'hb6:	wb_rf_dout <= #1 ch21_conf[0] ? pointer21   : 32'h0;	   8'hb7:	wb_rf_dout <= #1 ch21_conf[0] ? sw_pointer21   : 32'h0;	   8'hb8:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_csr    : 32'h0;	   8'hb9:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_txsz   : 32'h0;	   8'hba:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_adr0   : 32'h0;	   8'hbb:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_am0    : 32'h0;	   8'hbc:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_adr1   : 32'h0;	   8'hbd:	wb_rf_dout <= #1 ch22_conf[0] ? ch22_am1    : 32'h0;	   8'hbe:	wb_rf_dout <= #1 ch22_conf[0] ? pointer22   : 32'h0;	   8'hbf:	wb_rf_dout <= #1 ch22_conf[0] ? sw_pointer22   : 32'h0;	   8'hc0:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_csr    : 32'h0;	   8'hc1:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_txsz   : 32'h0;	   8'hc2:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_adr0   : 32'h0;	   8'hc3:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_am0    : 32'h0;	   8'hc4:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_adr1   : 32'h0;	   8'hc5:	wb_rf_dout <= #1 ch23_conf[0] ? ch23_am1    : 32'h0;	   8'hc6:	wb_rf_dout <= #1 ch23_conf[0] ? pointer23   : 32'h0;	   8'hc7:	wb_rf_dout <= #1 ch23_conf[0] ? sw_pointer23   : 32'h0;	   8'hc8:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_csr    : 32'h0;	   8'hc9:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_txsz   : 32'h0;	   8'hca:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_adr0   : 32'h0;	   8'hcb:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_am0    : 32'h0;	   8'hcc:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_adr1   : 32'h0;	   8'hcd:	wb_rf_dout <= #1 ch24_conf[0] ? ch24_am1    : 32'h0;	   8'hce:	wb_rf_dout <= #1 ch24_conf[0] ? pointer24   : 32'h0;	   8'hcf:	wb_rf_dout <= #1 ch24_conf[0] ? sw_pointer24   : 32'h0;	   8'hd0:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_csr    : 32'h0;	   8'hd1:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_txsz   : 32'h0;	   8'hd2:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_adr0   : 32'h0;	   8'hd3:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_am0    : 32'h0;	   8'hd4:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_adr1   : 32'h0;	   8'hd5:	wb_rf_dout <= #1 ch25_conf[0] ? ch25_am1    : 32'h0;	   8'hd6:	wb_rf_dout <= #1 ch25_conf[0] ? pointer25   : 32'h0;	   8'hd7:	wb_rf_dout <= #1 ch25_conf[0] ? sw_pointer25   : 32'h0;	   8'hd8:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_csr    : 32'h0;	   8'hd9:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_txsz   : 32'h0;	   8'hda:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_adr0   : 32'h0;	   8'hdb:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_am0    : 32'h0;	   8'hdc:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_adr1   : 32'h0;	   8'hdd:	wb_rf_dout <= #1 ch26_conf[0] ? ch26_am1    : 32'h0;	   8'hde:	wb_rf_dout <= #1 ch26_conf[0] ? pointer26   : 32'h0;	   8'hdf:	wb_rf_dout <= #1 ch26_conf[0] ? sw_pointer26   : 32'h0;	   8'he0:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_csr    : 32'h0;	   8'he1:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_txsz   : 32'h0;	   8'he2:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_adr0   : 32'h0;	   8'he3:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_am0    : 32'h0;	   8'he4:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_adr1   : 32'h0;	   8'he5:	wb_rf_dout <= #1 ch27_conf[0] ? ch27_am1    : 32'h0;	   8'he6:	wb_rf_dout <= #1 ch27_conf[0] ? pointer27   : 32'h0;	   8'he7:	wb_rf_dout <= #1 ch27_conf[0] ? sw_pointer27   : 32'h0;	   8'he8:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_csr    : 32'h0;	   8'he9:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_txsz   : 32'h0;	   8'hea:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_adr0   : 32'h0;	   8'heb:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_am0    : 32'h0;	   8'hec:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_adr1   : 32'h0;	   8'hed:	wb_rf_dout <= #1 ch28_conf[0] ? ch28_am1    : 32'h0;	   8'hee:	wb_rf_dout <= #1 ch28_conf[0] ? pointer28   : 32'h0;	   8'hef:	wb_rf_dout <= #1 ch28_conf[0] ? sw_pointer28   : 32'h0;	   8'hf0:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_csr    : 32'h0;	   8'hf1:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_txsz   : 32'h0;	   8'hf2:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_adr0   : 32'h0;	   8'hf3:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_am0    : 32'h0;	   8'hf4:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_adr1   : 32'h0;	   8'hf5:	wb_rf_dout <= #1 ch29_conf[0] ? ch29_am1    : 32'h0;	   8'hf6:	wb_rf_dout <= #1 ch29_conf[0] ? pointer29   : 32'h0;	   8'hf7:	wb_rf_dout <= #1 ch29_conf[0] ? sw_pointer29   : 32'h0;	   8'hf8:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_csr    : 32'h0;	   8'hf9:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_txsz   : 32'h0;	   8'hfa:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_adr0   : 32'h0;	   8'hfb:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_am0    : 32'h0;	   8'hfc:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_adr1   : 32'h0;	   8'hfd:	wb_rf_dout <= #1 ch30_conf[0] ? ch30_am1    : 32'h0;	   8'hfe:	wb_rf_dout <= #1 ch30_conf[0] ? pointer30   : 32'h0;	   8'hff:	wb_rf_dout <= #1 ch30_conf[0] ? sw_pointer30   : 32'h0;	endcase//////////////////////////////////////////////////////////////////////// WISHBONE Register Write Logic// And DMA Engine register Update Logic//// Global Registersassign csr_we		= wb_rf_we & (wb_rf_adr == 8'h0);assign int_maska_we	= wb_rf_we & (wb_rf_adr == 8'h1);assign int_maskb_we	= wb_rf_we & (wb_rf_adr == 8'h2);// ---------------------------------------------------always @(posedge clk or negedge rst)	if(!rst)		csr_r <= #1 8'h0;	else	if(csr_we)		csr_r <= #1 wb_rf_din[7:0];// ---------------------------------------------------// INT_MASKalways @(posedge clk or negedge rst)	if(!rst)		int_maska_r <= #1 31'h0;	else	if(int_maska_we)	int_maska_r <= #1 wb_rf_din[30:0];always @(posedge clk or negedge rst)	if(!rst)		int_maskb_r <= #1 31'h0;	else	if(int_maskb_we)	int_maskb_r <= #1 wb_rf_din[30:0];//////////////////////////////////////////////////////////////////////// Interrupts//assign int_srca = {1'b0, (int_maska_r & ch_int) };assign int_srcb = {1'b0, (int_maskb_r & ch_int) };// Interrupt Outputsalways @(posedge clk)	inta_o <= #1 |int_srca;always @(posedge clk)	intb_o <= #1 |int_srcb;//////////////////////////////////////////////////////////////////////// Channel Register File//// chXX_conf = { CBUF, ED, ARS, EN }wb_dma_ch_rf #(0, ch0_conf[0], ch0_conf[1], ch0_conf[2], ch0_conf[3]) u0(		.clk(		clk		),		.rst(		rst		),		.pointer(	pointer0	),		.pointer_s(	pointer0_s	),		.ch_csr(	ch0_csr		),		.ch_txsz(	ch0_txsz	),		.ch_adr0(	ch0_adr0	),		.ch_adr1(	ch0_adr1	),		.ch_am0(	ch0_am0		),		.ch_am1(	ch0_am1		),		.sw_pointer(	sw_pointer0	),		.ch_stop(	ch_stop[0]	),		.ch_dis(	ch_dis[0]	),		.int(		ch_int[0]	),		.wb_rf_din(	wb_rf_din	),		.wb_rf_adr(	wb_rf_adr	),		.wb_rf_we(	wb_rf_we	),		.wb_rf_re(	wb_rf_re	),		.ch_sel(	ch_sel		),		.ndnr(		ndnr[0]		),		.dma_busy(	dma_busy	),		.dma_err(	dma_err		),		.dma_done(	dma_done	),		.dma_done_all(	dma_done_all	),		.de_csr(	de_csr		),		.de_txsz(	de_txsz		),		.de_adr0(	de_adr0		),		.de_adr1(	de_adr1		),		.de_csr_we(	de_csr_we	),		.de_txsz_we(	de_txsz_we	),		.de_adr0_we(	de_adr0_we	),		.de_adr1_we(	de_adr1_we	),		.de_fetch_descr(de_fetch_descr	),		.dma_rest(	dma_rest[0]	),		.ptr_set(	ptr_set		)		);wb_dma_ch_rf #(1, ch1_conf[0], ch1_conf[1], ch1_conf[2], ch1_conf[3]) u1(		.clk(		clk		),		.rst(		rst		),		.pointer(	pointer1	),		.pointer_s(	pointer1_s	),		.ch_csr(	ch1_csr		),		.ch_txsz(	ch1_txsz	),		.ch_adr0(	ch1_adr0	),		.ch_adr1(	ch1_adr1	),		.ch_am0(	ch1_am0		),		.ch_am1(	ch1_am1		),		.sw_pointer(	sw_pointer1	),		.ch_stop(	ch_stop[1]	),		.ch_dis(	ch_dis[1]	),		.int(		ch_int[1]	),		.wb_rf_din(	wb_rf_din	),		.wb_rf_adr(	wb_rf_adr	),		.wb_rf_we(	wb_rf_we	),		.wb_rf_re(	wb_rf_re	),		.ch_sel(	ch_sel		),		.ndnr(		ndnr[1]		),		.dma_busy(	dma_busy	),		.dma_err(	dma_err		),		.dma_done(	dma_done	),		.dma_done_all(	dma_done_all	),		.de_csr(	de_csr		),		.de_txsz(	de_txsz		),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -