完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用斯巴达3AN和SPI通信我正在使用KCPSM3。我想知道是否有一个PICO BLAZE COMPILER。如果它在哪里可以找到它。我已经看过PCCOMP但它不支持KCPSM3。
所以,如果有其他编辑器,请告诉我。 以上来自于谷歌翻译 以下为原文 I am using spartan 3AN and for SPI communication I am using KCPSM3.I want to know whether there is an PICO BLAZE COMPILER.If it is where can i find it.I have seen PCCOMP but it is not supporting KCPSM3. So, Please let me know if any other complier available. |
|
相关推荐
3个回答
|
|
Iam dng项目是关于spartan 3an,目前正致力于atmel SPI flash。我希望FPGA之间的通信是MASTER,而ATMEL SPI则是SLAVE。
我在芯片处理器上使用pico blaze,我必须在汇编中编写代码,我觉得很难写。所以,是否有任何编译器在C中为相同的处理器(pico blaze)编写代码。 希望得到回应 以上来自于谷歌翻译 以下为原文 Iam dng project on spartan 3an,Currently working on atmel SPI flash.I want to have communication between FPGA as MASTER and ATMEL SPI as SLAVE . I am using pico blaze on chip processor for which i have to write code in assembly,which I feel difficult to write.So, Is there any compiler for writting code in C for same processor (pico blaze). Hoping for the response |
|
|
|
ravi87写道:Iam dng项目在斯巴达3an,目前正在研究atmel SPI flash.I希望FPGA之间的通信作为MASTER和ATMEL SPI作为SLAVE。
我在芯片处理器上使用pico blaze,我必须在汇编中编写代码,我觉得很难写。所以,是否有任何编译器在C中为相同的处理器(pico blaze)编写代码。 希望得到回应 PicoBlaze指令集很可能是最简单的,并且编写汇编代码非常简单。 C编译器过度。 吸收它并学习装配说明。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 ravi87 wrote:The PicoBlaze instruction set is quite possibly the simplest possible and writing assembly code for it is childishly simple. A C compiler is overkill. Suck it up and learn the assembly instructions. ----------------------------Yes, I do this for a living. |
|
|
|
我试图通过在汇编中编写代码来从fpga到超级终端进行通信,并且我将代码省略了所有不必要的东西。
我仍然没有在超级终端上显示ant o / p。所以,请以正确的方式引导。 (后来我在spi flash程序员zip文件中提供的批处理文件的帮助下尝试从hyper终端到fpga进行通信,但是在超级终端上没有选项显示..) ---------------以下用VHDL编写的代码 输入端口:进程(clk) 开始 如果clk'event和clk ='1'那么 case port_id(1 downto 0)是 - 读取地址为00 hex的状态信号 当“00”=> in_port in_port in_port in_port; MOSI第7位 CONSTANT spi_cs,02; CS位1 CONSTANT spi_clk,01; SPI_clk位0 CONSTANT spi_in_port,02 CONSTANT spi_miso,01; MISO位0 叫spi_cs_low; 芯片选择低 加载s3,82; 写命令 叫spi_tx_rx; 发送命令 调用spi_address; 发送地址 载入s3,45; 存储数据 叫spi_tx_rx; 发送数据 叫spi_cs_high; 芯片选择高 跳起来 spi_cs_low :; 芯片低压 叫spi_cs_high xor s0,spi_cs 输出s0,02 返回 spi_cs_high :; 芯片选择高 加载s0,spi_cs 输出s0,02 返回 spi_tx_rx: 加载s6,08 next_spi_tx_rx_bit: 输出s3,spi_out_port; 写命令02位置 测试s3,spi_mosi sla s3 叫clock_low 叫clock_high sub s6,01 jump nz,next_spi_tx_rx_bit 返回 clock_high: 输出s3,02 测试s3,01 跳c,rxtx 跳时钟_high clock_low: 叫clock_high 输出s3,02 测试s3,01 跳z,rxtx 跳clock_low spi_address: 加载s3,00 调用spi_tx_rx 加载s3,0A 调用spi_tx_rx 加载s3,01 调用spi_tx_rx 返回 以上来自于谷歌翻译 以下为原文 I have tried to communicate from fpga to hyper terminal by writting the code in assembly and I am giving the code omitting all the unnecessary things. Still i have not got ant o/p displayed on the hyper terminal.So, please guide in the right way. (Later I have tried to communicate from hyper terminal to fpga with the help of batch file provided in the spi flash programmer zip file, but there is no options display on the hyper terminal..) ---------------The following code written in VHDL input ports: process(clk) begin if clk'event and clk='1' then case port_id(1 downto 0) is -- read status signals at address 00 hex when "00" => in_port <= status_port; -- read UART receive data at address 01 hex when "01" => in_port <= rx_data; -- read serial data from FLASH memory data at address 02 hex when "10" => in_port <= "0000000" & miso; -- Don't care used for all other addresses to ensure minimum logic implementation when others => in_port <= "XXXXXXXX"; end case; if (read_strobe='1' and port_id(1 downto 0)="01") then read_from_uart <= '1'; else read_from_uart <= '0'; end if; end if; end process input_ports; -- KCPSM3 output ports -- adding the output registers to the processor output_ports: process(clk) begin if clk'event and clk='1' then if write_strobe='1' then -- SPI signals to FLASH at port 02 hex if port_id(1)='1' then sck <= out_port(0); cs0_b <= out_port(1); mosi <= out_port(7); end if; end if; --------------The following is the code written is assembly start: CONSTANT spi_out_port,02 CONSTANT spi_mosi, 80 ; MOSI bit 7 CONSTANT spi_cs, 02; CS bit 1 CONSTANT spi_clk, 01; SPI_clk bit 0 CONSTANT spi_in_port,02 CONSTANT spi_miso, 01; MISO bit 0 call spi_cs_low ; chip select low load s3,82 ; command for write call spi_tx_rx ; send command call spi_address ; send address load s3,45 ; store data call spi_tx_rx ; send data call spi_cs_high ; chip select high jump start spi_cs_low: ; chip selet low call spi_cs_high xor s0,spi_cs output s0,02 return spi_cs_high: ; chip select high load s0,spi_cs output s0,02 return spi_tx_rx: load s6,08 next_spi_tx_rx_bit: output s3,spi_out_port ; write command 02 location test s3,spi_mosi sla s3 call clock_low call clock_high sub s6,01 jump nz,next_spi_tx_rx_bit return clock_high: output s3,02 test s3,01 jump c,rxtx jump clock_high clock_low: call clock_high output s3,02 test s3,01 jump z,rxtx jump clock_low spi_address : load s3,00 call spi_tx_rx load s3,0A call spi_tx_rx load s3,01 call spi_tx_rx return |
|
|
|
只有小组成员才能发言,加入小组>>
2395 浏览 7 评论
2810 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2277 浏览 9 评论
3352 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2445 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
776浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
557浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
403浏览 1评论
1984浏览 0评论
702浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 23:45 , Processed in 1.176680 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号