完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我有一个项目需要使用DNA,多重启动,SPI闪存等。我坚持使用SPI闪存。
除了xilinx的产品外,我还有一块主板。 该公司没有提供有关董事会的足够信息。 我在SPI中使用了多引导功能。 在我的项目中,除了配置数据之外,我需要写入一个特定的位置(很可能是结束空的64位闪存)并从SPI闪存中读取64位数据。 我无法弄清楚该怎么做。 总之,我需要一些关于如何使用Verilog的SPI闪存的指示和提示。(我想避免使用micrlaze)第一个问题是使用简单的状态机可以使用SPI闪存吗? 如果是这样,协议应该如何?(我在主设备和从设备的微控制器平台上使用SPI但我不能说我完全理解它)我是否需要不惜一切代价的微纤维核心? 我的主板有一个16Mbyte SPI闪存(x4),我发现芯片来自numonyx,但我不知道具体的芯片编号,所以我也没有数据表。 任何帮助都是适当的。 感谢您的关注 编辑:顺便说一下,主板上有SPARTAN-6芯片,如果需要,我可以提供更多信息。 编辑2:我想spi flash是Numonyx N25Q128 最诚挚的问候Colak 以上来自于谷歌翻译 以下为原文 Hi, I have a project that needs to use DNA, multiboot, SPI flash etc. I am stuck at using SPI flash. I have a board apart from xilinx's products. The company does not provide enough info about the board. I used multiboot functionality with the SPI. In my project aside from configuration data, i need to write to a specific location(most likely the ending empty 64 bits of flash)and read that 64bits of data from SPI flash. I couldn't figure out how to do so. In short i need some pointers and hints to how to use a SPI flash with Verilog.(i want to avoid using microblaze) First question is does it possible to use SPI flash by using simple state machines? If so, how the protocol should be?(i used SPI on a microcontroller platform with a master and slavebut i can't say i fully understand it) Do i need a microblaze core at all cost? My board has a 16Mbyte SPI flash(x4) , i found out that the chip is from numonyx, but i don't know the specific chip number so i don't have the datasheet either. Any help is appriciated. Thanks for your attention Edit: Btw the board has SPARTAN-6 chip on it, i could provide more info if needed. Edit2: i suppose the spi flash is Numonyx N25Q128Best Regards Colak |
|
相关推荐
14个回答
|
|
我有一个项目需要使用DNA,多重启动,SPI闪存等。我坚持使用SPI闪存。
SPI是一个非常简单的接口。 在低电平时,它只是一个8位移位寄存器。 SPI接口是初学FPGA设计学生的首批实验任务之一 - 因为它非常简单。 假设您精通FPGA设计和Verilog,您的第一步是了解有关SPI的更多信息。 网上有大量信息。 除了xilinx的产品外,我还有一块主板。 该公司没有提供有关董事会的足够信息。 当然,我们可能无法帮助你。 它是专用电路板还是商用FPGA开发板? 我在SPI中使用了多引导功能。 在我的项目中,除了配置数据之外,我需要写入一个特定的位置(很可能是结束空的64位闪存)并从SPI闪存中读取64位数据。 我无法弄清楚该怎么做。 总之,我需要一些指示和提示如何使用Verilog的SPI闪存。(我想避免使用micrlaze) 这是一个学校项目吗? 如果是这样,您的教练应该是给您指导和指导的人。 如果这不是一个学校项目,我不明白为什么你没有经过自己解决问题所需的培训和信心就接受这项任务。 您是否希望此用户论坛能够为您提供培训? 内存设备数据表是否不足以满足您的需求? 第一个问题是使用简单状态机可以使用SPI闪存吗? 是。 实现低级接口(读取或写入字节,给定特定地址)通常实现为小型状态机。 如果是这样,协议应该如何?(我在主机和从机的微控制器平台上使用SPI但我不能说我完全理解它) 一切都是'第一次'。 您需要我们的鼓励来了解SPI的工作原理吗? 我需要不惜一切代价购买微纤维芯吗? 没有。 我的主板有一个16Mbyte SPI闪存(x4),我发现芯片来自numonyx,但我不知道具体的芯片编号,所以我也没有数据表。 别无助了。 读取电路板上设备上印刷的数字。 阅读电路板原理图。 联系电路板制造商。 工程是一项需要积极参与的努力,它不是观众的运动。 任何帮助都是适当的。 感谢您的关注。 首先,你必须自己帮助。 如果您没有足够的信心接受这一挑战,那么从一个更小更简单的项目开始,以建立一些信心。 在Spartan-6 FPGA被“启动”之后访问SPI配置存储器是一个简单而直接的功能,由初学者每天设计和实现。 如果FPGA可以使用SPI存储器设备进行配置,那么无论如何设计控制器以从同一FPGA访问相同的SPI存储器设备都应该没有问题。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 在原帖中查看解决方案 以上来自于谷歌翻译 以下为原文 I have a project that needs to use DNA, multiboot, SPI flash etc. I am stuck at using SPI flash. SPI is a very simple interface. At a low level, it is little more than an 8-bit shift register. An SPI interface is one of the very first lab assignments given to beginning FPGA design students -- because it is so simple. Your first step, assuming that you are proficient in FPGA design and Verilog, is to learn more about SPI. There is an abundance of information on the web. I have a board apart from xilinx's products. The company does not provide enough info about the board. Of course, we probably cannot help you there. Is it a proprietary board or is it a commercially available FPGA development board? I used multiboot functionality with the SPI. In my project aside from configuration data, i need to write to a specific location(most likely the ending empty 64 bits of flash)and read that 64bits of data from SPI flash. I couldn't figure out how to do so. In short i need some pointers and hints to how to use a SPI flash with Verilog.(i want to avoid using microblaze) Is this a school project? If so, your instructor should be the one to give you instruction and guidance. If this is not a school project, I don't understand why you are taking on this assignment without the training and confidence required to solve the problem on your own. Are you expecting this user forum to train you? Is the memory device datasheet insufficient for your purposes? First question is does it possible to use SPI flash by using simple state machines? Yes. Implementing the low level interface (read or write a byte, given a specific address) is typically implemented as a small state machine. If so, how the protocol should be?(i used SPI on a microcontroller platform with a master and slavebut i can't say i fully understand it) There is always a 'first time' for everything. Do you need encouragement from us to learn how SPI works? Do i need a microblaze core at all cost? No. My board has a 16Mbyte SPI flash(x4) , i found out that the chip is from numonyx, but i don't know the specific chip number so i don't have the datasheet either. Stop acting helpless. Read the number printed on the device on your board. Read the board schematics. Contact the board's manufacturer. Engineering is an endeavour which requires active participation, it is not a spectator's sport. Any help is appriciated. Thanks for your attention. First off, you must help yourself. If you don't have enough confidence to take on this challenge, then start with a smaller and simpler project to build some confidence. Accessing a SPI configuration memory after the Spartan-6 FPGA has been 'booted' from it is a simple and straightforward function which is being designed and implemented every day, by beginners. If the FPGA can use the SPI memory device for configuration, then you should have no problem whatsoever designing a controller to access the same SPI memory device from the same FPGA. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.View solution in original post |
|
|
|
“是否可以通过使用简单的状态机来使用SPI闪存?是的。这可能很困难,但有可能。特别是现在您已经为闪存IC提供了数据表。但是闪存连接到的FPGA引脚也不能
用作用户I / O. ------------------------------------------“如果它不起作用 模拟,它不会在板上工作。“ 以上来自于谷歌翻译 以下为原文 "is it possible to use SPI flash by using simple state machines? Yes. It might be difficult, but it is possible. Especially now that you have sourced the datasheet for the flash IC. UNLESS the flash is connected to FPGA pins that cannot also be used as User I/O. ------------------------------------------ "If it don't work in simulation, it won't work on the board." |
|
|
|
我有一个项目需要使用DNA,多重启动,SPI闪存等。我坚持使用SPI闪存。
SPI是一个非常简单的接口。 在低电平时,它只是一个8位移位寄存器。 SPI接口是初学FPGA设计学生的首批实验任务之一 - 因为它非常简单。 假设您精通FPGA设计和Verilog,您的第一步是了解有关SPI的更多信息。 网上有大量信息。 除了xilinx的产品外,我还有一块主板。 该公司没有提供有关董事会的足够信息。 当然,我们可能无法帮助你。 它是专用电路板还是商用FPGA开发板? 我在SPI中使用了多引导功能。 在我的项目中,除了配置数据之外,我需要写入一个特定的位置(很可能是结束空的64位闪存)并从SPI闪存中读取64位数据。 我无法弄清楚该怎么做。 总之,我需要一些指示和提示如何使用Verilog的SPI闪存。(我想避免使用micrlaze) 这是一个学校项目吗? 如果是这样,您的教练应该是给您指导和指导的人。 如果这不是一个学校项目,我不明白为什么你没有经过自己解决问题所需的培训和信心就接受这项任务。 您是否希望此用户论坛能够为您提供培训? 内存设备数据表是否不足以满足您的需求? 第一个问题是使用简单状态机可以使用SPI闪存吗? 是。 实现低级接口(读取或写入字节,给定特定地址)通常实现为小型状态机。 如果是这样,协议应该如何?(我在主机和从机的微控制器平台上使用SPI但我不能说我完全理解它) 一切都是'第一次'。 您需要我们的鼓励来了解SPI的工作原理吗? 我需要不惜一切代价购买微纤维芯吗? 没有。 我的主板有一个16Mbyte SPI闪存(x4),我发现芯片来自numonyx,但我不知道具体的芯片编号,所以我也没有数据表。 别无助了。 读取电路板上设备上印刷的数字。 阅读电路板原理图。 联系电路板制造商。 工程是一项需要积极参与的努力,它不是观众的运动。 任何帮助都是适当的。 感谢您的关注。 首先,你必须自己帮助。 如果您没有足够的信心接受这一挑战,那么从一个更小更简单的项目开始,以建立一些信心。 在Spartan-6 FPGA被“启动”之后访问SPI配置存储器是一个简单而直接的功能,由初学者每天设计和实现。 如果FPGA可以使用SPI存储器设备进行配置,那么无论如何设计控制器以从同一FPGA访问相同的SPI存储器设备都应该没有问题。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 I have a project that needs to use DNA, multiboot, SPI flash etc. I am stuck at using SPI flash. SPI is a very simple interface. At a low level, it is little more than an 8-bit shift register. An SPI interface is one of the very first lab assignments given to beginning FPGA design students -- because it is so simple. Your first step, assuming that you are proficient in FPGA design and Verilog, is to learn more about SPI. There is an abundance of information on the web. I have a board apart from xilinx's products. The company does not provide enough info about the board. Of course, we probably cannot help you there. Is it a proprietary board or is it a commercially available FPGA development board? I used multiboot functionality with the SPI. In my project aside from configuration data, i need to write to a specific location(most likely the ending empty 64 bits of flash)and read that 64bits of data from SPI flash. I couldn't figure out how to do so. In short i need some pointers and hints to how to use a SPI flash with Verilog.(i want to avoid using microblaze) Is this a school project? If so, your instructor should be the one to give you instruction and guidance. If this is not a school project, I don't understand why you are taking on this assignment without the training and confidence required to solve the problem on your own. Are you expecting this user forum to train you? Is the memory device datasheet insufficient for your purposes? First question is does it possible to use SPI flash by using simple state machines? Yes. Implementing the low level interface (read or write a byte, given a specific address) is typically implemented as a small state machine. If so, how the protocol should be?(i used SPI on a microcontroller platform with a master and slavebut i can't say i fully understand it) There is always a 'first time' for everything. Do you need encouragement from us to learn how SPI works? Do i need a microblaze core at all cost? No. My board has a 16Mbyte SPI flash(x4) , i found out that the chip is from numonyx, but i don't know the specific chip number so i don't have the datasheet either. Stop acting helpless. Read the number printed on the device on your board. Read the board schematics. Contact the board's manufacturer. Engineering is an endeavour which requires active participation, it is not a spectator's sport. Any help is appriciated. Thanks for your attention. First off, you must help yourself. If you don't have enough confidence to take on this challenge, then start with a smaller and simpler project to build some confidence. Accessing a SPI configuration memory after the Spartan-6 FPGA has been 'booted' from it is a simple and straightforward function which is being designed and implemented every day, by beginners. If the FPGA can use the SPI memory device for configuration, then you should have no problem whatsoever designing a controller to access the same SPI memory device from the same FPGA. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
“是否可以通过使用简单的状态机来使用SPI闪存?是的。这可能很困难,但有可能。特别是现在您已经为闪存IC提供了数据表。但是闪存连接到的FPGA引脚也不能
用作用户I / O. 对于Spartan-6器件,所有必需的存储器件接口引脚都可用作用户I / O,因此这不是问题。 界面非常简单,可以作为学生的第一学期作业。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 "is it possible to use SPI flash by using simple state machines? Yes. It might be difficult, but it is possible. Especially now that you have sourced the datasheet for the flash IC. UNLESS the flash is connected to FPGA pins that cannot also be used as User I/O. For Spartan-6 devices, all the necessary memory device interface pins are available for use as User I/O, so this is not an issue. The interface is simple enough to be a first-semester homework assignment for students. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
好吧,首先,我很感谢你的回答,rchingham和eteam。
这两个答案都有足够的细节,我找到了解决方法。但是我想为你的答案添加一些个人想法,这部分与帖子无关。 如果它被删除它很好.rchigham:你的答案很短,它有足够的细节进一步提问我感谢你。我们:感谢你抽出时间回答我的帖子。 但我不能否认我感到沮丧和羞辱。 我不想变得粗鲁,但你似乎很容易看不起人。 我知道像你这样的人,我很钦佩你在具体问题上的决定性(比如你对这个平台你所知道的FPGA问题)。我既不想要论坛的培训,也不想要你的。 我不需要它。 我遇到了一个问题。 如果我们考虑到我在今天早上参加了这个项目,那么截止日期是1天半。 我只是问是否有人可以提供一些信息(如rchigham的答案或yoru的这一部分答案:“SPI是一个非常简单的接口。在低级别,它只是一个8位移位寄存器。”还有“ 是的。实现低级接口(读取或写入一个字节,给定一个特定的地址)通常是作为一个小型状态机实现的。“这些都是我需要的,但你对此大惊小怪。” 还有更多。 我在这里看到很多帖子很紧张,很粗鲁,就像他们正在向论坛用户强迫这个问题。 像这个论坛的用户一样回答它。 这种消息在我的观点中真的很有意思,所以我试图通过使用“任何帮助是非常友好和尊重你(所有用户)。感谢您的关注。” 这样的感觉。 这部分让我很生气:“首先,你必须帮助自己。如果你没有足够的信心接受这个挑战,那么从一个更小更简单的项目开始,建立一些信心。” 这也是“停止无助的行动。阅读你板上设备上印刷的数字”相信我,如果芯片的表面没有被擦除,我就不会这么想了。 由于我的董事会SUCKS的供应商在文件记录中没有关于电路板上额外芯片的信息。 这也是非常有意义的:“所有事情都有'第一次'。你需要我们的鼓励来了解SPI的运作方式吗?” 哦,相信我,我知道第一次。第一次; 你不认识我,你没有权利使用这些词。其次,尽量做一点理解。 总是有新手用户。(我不是新手也不是高级人员。我刚刚接触到spartan 6平台。正如我上面所说的,我在uC上使用了SPI协议。我也多次使用I2C和CAN和USB协议。 等等...唯一的问题是缺少芯片编号,你不必为此侮辱我。)如果有人问更多基本问题怎么办(我确定他们会问,但无论如何) 作为最后一句话,许多聪明的年轻人在我的大学的FPGA平台上变冷了,总的原因是一个人只是喜欢你。不管怎样,我道歉,如果我对你们所有人都很粗鲁,再次感谢你们对你们的尊重。 以上来自于谷歌翻译 以下为原文 Well, first of all i'm gratefull for your answers, rchingham and eteam. Both answers had enough detail and I found the workaround. Btw i want to add some personal thoughts for your answers, this part irrelevant from the post. If it is deleted it's fine. rchigham: your answer is short and it has enough details for further questioning i thank you for that. eteam: I thank you for your time to answer my post. But i couldn't deny that i feel discouraged and humuliated. I don't want to be rude, but you seem to look down on people easily. I know people like you and i admire your decisiveness on specific issues(like the FPGA issue you seem well knowledged about the platform). I neither want the forum's training nor your's. And i don't need it. There was a problem i faced. The deadline was 1 and a half day near which is pretty close if we consider that i took the project on THIS morning. And i simply asked if anyone can give some information(like rchigham's answer or this part of yoru answer:"SPI is a very simple interface. At a low level, it is little more than an 8-bit shift register."and also "Yes. Implementing the low level interface (read or write a byte, given a specific address) is typically implemented as a small state machine." Those were all i needed but you made a fuss about this.) And there is more. I saw LOTS of post on here which are strained, rude, like they are forcing the issue to the forum users. Like the users of this forum HAD to answer it. This kind of messages are really iritating in my oppinion, so i tried to be kind and respectfull against you(all of the users) by using "Any help is appriciated. Thanks for your attention." senteces like that. This part really made me mad : "First off, you must help yourself. If you don't have enough confidence to take on this challenge, then start with a smaller and simpler project to build some confidence." Also this "Stop acting helpless. Read the number printed on the device on your board" Believe me if the surface of chip wasn't ERASED i wouldn't be asking that. Since the vendor of my board SUCKS at documentations there were no info about the extra chips on the board. This was really iritating too: "There is always a 'first time' for everything. Do you need encouragement from us to learn how SPI works?" Oh believe me, i know there is first times. First; you don't know me you don't have the rights to use those words. Second, try to be a little understanding. There is always newbie users.(i am not a newbie nor an advanced person. I am just new to spartan 6 platform. As i said above i used SPI protocol on a uC. I also used I2C and CAN and USB protocols many times. etc... The only problem was the absence of chip number, you didn't have to affront me for that.) What if somebody asked more basic questions(i'm sure they are asking but anyway) As a final sentence, Many bright young minds became cold on FPGA platform at my university, and the total cause was a person which acted JUST LIKE YOU. Anyway, i apologize if i was rude to you all, thanks again for your helps with respect Colak |
|
|
|
None
以上来自于谷歌翻译 以下为原文 Well, first of all i'm gratefull for your answers, rchingham and eteam. Both answers had enough detail and I found the workaround. Thank you for the news of your success. Btw i want to add some personal thoughts for your answers, this part irrelevant from the post. If it is deleted it's fine. Personally, I appreciate your feedback. rchigham: your answer is short and it has enough details for further questioning i thank you for that. rcingham has been very helpful and patient with newbie FPGA designers in these forums, for a very long time. eteam: I thank you for your time to answer my post. But i couldn't deny that i feel discouraged and humuliated. That was not my intent. I apologise for having put you in this position. I don't want to be rude, but you seem to look down on people easily. I know people like you and i admire your decisiveness on specific issues (like the FPGA issue you seem well knowledged about the platform). You aren't rude (at least, not by my standards), and I admit to forming judgments of people based on very little information and interaction. These judgments are sometimes wrong. I form these judgments to help frame an appropriate and helpful response in these forums. If I had judged you as an experienced power supply designer (for example) with little interest in FPGA design, who needed a quick and brief answer in a field outside your feld of long-term interest, I would have answered you very differently. I judged you to be a moderately experienced designer, perhaps someone still in school but already moderately schooled in design. I neither want the forum's training nor your's. And i don't need it. I disagree. If I search the web for the term "SPI', the very first returned item is a Wikipedia article which makes the simplicity of SPI very clear in the first 4 or 5 paragraphs. I would expect (not hope... expect) a designer posting to a web-based user forum to have spent 1 or 2 minutes of your time engaged in a web search. Your question whether or not a MicroBlaze processor is required for an FPGA-based SPI controller would (and should) have been answered right there. Do you agree? It is not my intent to humiliate or embarass you. One of my highest-priority personal agendas for participating in these forums is to help by training and teaching, rather than indulge someone seeking to avoid learning and growing. At the risk of embarassing you further, I'll ask you: Did you spend as much time in a web search as you did in contemplating and writing your posts to this forum? (that's a rhetorical question, you need not answer) There was a problem i faced. The deadline was 1 and a half day near which is pretty close if we consider that i took the project on THIS morning. Now you realise the limitations of user forum posts -- the information you do not provide is often unknown to the reader, and missing context and detail can make a very big difference in the message you do or do not successfully convey. This is a problem for all of us, it is the nature of the user forum which we struggle to overcome. And i simply asked if anyone can give some information (like rchigham's answer or this part of yoru answer:"SPI is a very simple interface. At a low level, it is little more than an 8-bit shift register."and also "Yes. Implementing the low level interface (read or write a byte, given a specific address) is typically implemented as a small state machine." Those were all i needed but you made a fuss about this.) The fuss I made was
In many cases, this is entirely consistent with helping you (or others) to be more productive, more confident, more self-sufficient, and better-trained as a designer. I understand that you don't value or appreciate this sort of help, but in the context of an online user forum it sometimes serves to be both brief and blunt. (note: being blunt comes naturally to me, being brief does not) If someone sitting next to you in the school library asks you 'what time is it', do you tell him/her the time, or do you point to the clock on the wall so that your colleague can meet his/her needs when you aren't sitting by his/her side? In your case, I did both. Believe me if the surface of chip wasn't ERASED i wouldn't be asking that. Since the vendor of my board SUCKS at documentations there were no info about the extra chips on the board. Information missing from your post. By the way (and this occurred to me while writing this), if your board provides access to the FPGA's JTAG pins, you might have been able to use iMPACT software to identify the SPI memory device. This was really iritating too: "There is always a 'first time' for everything. Do you need encouragement from us to learn how SPI works?" Oh believe me, i know there is first times. Your irritation is self-inflicted. You said you had used SPI before but did not understand the protocol. Do you understand the protocol now? First; you don't know me you don't have the rights to use those words. Second, try to be a little understanding. There is always newbie users.(i am not a newbie nor an advanced person. I am just new to spartan 6 platform. As i said above i used SPI protocol on a uC. I also used I2C and CAN and USB protocols many times. etc... The only problem was the absence of chip number, you didn't have to affront me for that.) From your original post, it was not clear that 'absence of chip number' stood in the way of gaining basic understanding of SPI protocol, or determining the need for a MicroBlaze. It is still not clear. Do you agree? What if somebody asked more basic questions(i'm sure they are asking but anyway) SPI is a frequently mentioned subject in these forums. I typically refer forum users to:
This is a silly assertion. Design is not a discipline for people with fragile egos or who are too sensitive to personal insult. There are too many decisions and tradeoffs to be made, too many deadlines and compromises to be negotiated, for the timid or passive designer to thrive. It is better to confront these issues sooner rather than later. Aside from the apparent insult and humiliation my 'help' inflicted, were you in any measure inclined to run a web search of 'SPI' or consult one of the professsors for assistance, as a result of my post? Or were the useful points limited to 1 or 2 lines? Anyway, i apologize if i was rude to you all, thanks again for your helps with respect Colak If you have the time, I would be interested in your idea of a proper and helpful response to your first posting in this thread. Given that your questions have been answered, what would have been the help you should have received? Consider this: In the span of a few hours (and much less than a few hours of effort) you
I wish you well in your endeavours. I don't work for Xilinx, and I will be careful not to challenge you in subsequent threads if you find it useful to post again in these forums. So you needn't be wary of a similar experience (of this discussion) on some future occasion. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
None
以上来自于谷歌翻译 以下为原文 Well, first of all i'm gratefull for your answers, rchingham and eteam. Both answers had enough detail and I found the workaround. Thank you for the news of your success. Btw i want to add some personal thoughts for your answers, this part irrelevant from the post. If it is deleted it's fine. Personally, I appreciate your feedback. rchigham: your answer is short and it has enough details for further questioning i thank you for that. rcingham has been very helpful and patient with newbie FPGA designers in these forums, for a very long time. eteam: I thank you for your time to answer my post. But i couldn't deny that i feel discouraged and humuliated. That was not my intent. I apologise for having put you in this position. I don't want to be rude, but you seem to look down on people easily. I know people like you and i admire your decisiveness on specific issues (like the FPGA issue you seem well knowledged about the platform). You aren't rude (at least, not by my standards), and I admit to forming judgments of people based on very little information and interaction. These judgments are sometimes wrong. I form these judgments to help frame an appropriate and helpful response in these forums. If I had judged you as an experienced power supply designer (for example) with little interest in FPGA design, who needed a quick and brief answer in a field outside your feld of long-term interest, I would have answered you very differently. I judged you to be a moderately experienced designer, perhaps someone still in school but already moderately schooled in design. I neither want the forum's training nor your's. And i don't need it. I disagree. If I search the web for the term "SPI', the very first returned item is a Wikipedia article which makes the simplicity of SPI very clear in the first 4 or 5 paragraphs. I would expect (not hope... expect) a designer posting to a web-based user forum to have spent 1 or 2 minutes of your time engaged in a web search. Your question whether or not a MicroBlaze processor is required for an FPGA-based SPI controller would (and should) have been answered right there. Do you agree? It is not my intent to humiliate or embarass you. One of my highest-priority personal agendas for participating in these forums is to help by training and teaching, rather than indulge someone seeking to avoid learning and growing. At the risk of embarassing you further, I'll ask you: Did you spend as much time in a web search as you did in contemplating and writing your posts to this forum? (that's a rhetorical question, you need not answer) There was a problem i faced. The deadline was 1 and a half day near which is pretty close if we consider that i took the project on THIS morning. Now you realise the limitations of user forum posts -- the information you do not provide is often unknown to the reader, and missing context and detail can make a very big difference in the message you do or do not successfully convey. This is a problem for all of us, it is the nature of the user forum which we struggle to overcome. And i simply asked if anyone can give some information (like rchigham's answer or this part of yoru answer:"SPI is a very simple interface. At a low level, it is little more than an 8-bit shift register."and also "Yes. Implementing the low level interface (read or write a byte, given a specific address) is typically implemented as a small state machine." Those were all i needed but you made a fuss about this.) The fuss I made was
In many cases, this is entirely consistent with helping you (or others) to be more productive, more confident, more self-sufficient, and better-trained as a designer. I understand that you don't value or appreciate this sort of help, but in the context of an online user forum it sometimes serves to be both brief and blunt. (note: being blunt comes naturally to me, being brief does not) If someone sitting next to you in the school library asks you 'what time is it', do you tell him/her the time, or do you point to the clock on the wall so that your colleague can meet his/her needs when you aren't sitting by his/her side? In your case, I did both. Believe me if the surface of chip wasn't ERASED i wouldn't be asking that. Since the vendor of my board SUCKS at documentations there were no info about the extra chips on the board. Information missing from your post. By the way (and this occurred to me while writing this), if your board provides access to the FPGA's JTAG pins, you might have been able to use iMPACT software to identify the SPI memory device. This was really iritating too: "There is always a 'first time' for everything. Do you need encouragement from us to learn how SPI works?" Oh believe me, i know there is first times. Your irritation is self-inflicted. You said you had used SPI before but did not understand the protocol. Do you understand the protocol now? First; you don't know me you don't have the rights to use those words. Second, try to be a little understanding. There is always newbie users.(i am not a newbie nor an advanced person. I am just new to spartan 6 platform. As i said above i used SPI protocol on a uC. I also used I2C and CAN and USB protocols many times. etc... The only problem was the absence of chip number, you didn't have to affront me for that.) From your original post, it was not clear that 'absence of chip number' stood in the way of gaining basic understanding of SPI protocol, or determining the need for a MicroBlaze. It is still not clear. Do you agree? What if somebody asked more basic questions(i'm sure they are asking but anyway) SPI is a frequently mentioned subject in these forums. I typically refer forum users to:
This is a silly assertion. Design is not a discipline for people with fragile egos or who are too sensitive to personal insult. There are too many decisions and tradeoffs to be made, too many deadlines and compromises to be negotiated, for the timid or passive designer to thrive. It is better to confront these issues sooner rather than later. Aside from the apparent insult and humiliation my 'help' inflicted, were you in any measure inclined to run a web search of 'SPI' or consult one of the professsors for assistance, as a result of my post? Or were the useful points limited to 1 or 2 lines? Anyway, i apologize if i was rude to you all, thanks again for your helps with respect Colak If you have the time, I would be interested in your idea of a proper and helpful response to your first posting in this thread. Given that your questions have been answered, what would have been the help you should have received? Consider this: In the span of a few hours (and much less than a few hours of effort) you
I wish you well in your endeavours. I don't work for Xilinx, and I will be careful not to challenge you in subsequent threads if you find it useful to post again in these forums. So you needn't be wary of a similar experience (of this discussion) on some future occasion. -- Bob Elkind |
|
|
|
看来我对你的帖子做了一些错过的判断。
我应该更深入地看一下工程师的观点,而不是学生的观点,我真的很抱歉。(我认为选择的词语影响了我,因为英语不是我的母语,我确实会做出误解)但是在你解释之后 你的想法以不同的方式(至少我认为第二篇文章是一个非常好的答案)这一切都是有道理的。我一次又一次地感谢你,这些帖子对我和今后的工程生活都有帮助,这句话我 我不能同意:“工程是一项需要积极参与的努力,它不是观众的运动。”我同意你的热情问题。 由于截止日期已经结束,我没有机会深入了解它。 而且我没有提供大量数据,因为我认为它们没用。 对于我的导师,我和他一起工作了大约2年。 他是一个善良而且非常成功的人。 但他没有给他的学生足够的时间。 从2年开始,这个过程总是这样:我接受了一项任务(都与课程和独立问题相关),我搜索并解决或无法解决。 在另一位教练的帮助下,我主要克服了我的问题。 但是在这几周里,我和两位教练都在忙着提供论文和资料,而且我们也参加了决赛周。 这种情况是个例外。 我试着想你的鞋子。 而且我会给出的答案会稍微偏小一些,但除此之外,它背后的想法也是一样的。 我代表我为我的粗鲁感到抱歉(不会再发生) 与尊敬的克拉克 以上来自于谷歌翻译 以下为原文 It seems i made some miss judgements on your post. I should have looked a little deeper in an engineers view not a students view,i am genuinely sorry about that.(I think the choice of words affected me, and since english is not my native language i do make misinterpretations) but after you explanied your ideas in a different way(at least i think the second post is a very good answer) it all made sense. I thank you again and again, these post are helpfull for me and for my engineering life in future, and this sentence i couldn't agree more: "Engineering is an endeavour which requires active participation, it is not a spectator's sport." I agree with your therotical question too. Since the deadline was close i didn't have the chance to look deeply into it. And i didn't give lots of data, cause i thought that they are useless. For my instructor, i am working with him for about 2 years. he is a good and very succesfull person. But he does not give enough time to his students. Since the 2 years, the process was always like this: I took an assignment(both relevant to courses and independent issues) I searched and solved or couldn't solve it. With the assistance of another instructor i mostly overcome my problems. But in these weeks both me and the two instructors are busy with papers and cources and also we are in the finals week. This situation is an exception. I try to think in your shoes. And the answer i would have give would be a little smaller with some different words, but apart from that the idea behind it would be the same. On my behalf i'm sorry for my rudeness(it won't happen again) with respect Colak |
|
|
|
以防其他人阅读此帖子并想知道有效的实施方法
SPI访问外部闪存,我想补充说PicoBlaze是一个不错的选择 指导HDL编码。 它占地面积非常小(虽然它包括一个Block RAM)和 能够轻松处理更高级别的写入和擦除SPI闪存协议。 我使用PicoBlaze的部件与PicoBlaze处理的XC2S15一样小 SPI访问以及与主机的串行通信和更大的配置 Virtex 2部分来自附带的SPI闪存。 当然MicroBlaze也可以用于 这样,但是FPGA资源的成本要高得多,而且可能还需要设计时间。 我只考虑MicroBlaze,如果我已经将它用于设计中的其他功能。 只是我的$ .02 - Gabor - Gabor 以上来自于谷歌翻译 以下为原文 Just in case anyone else reads this thread and wants to know efficient ways to implement SPI access to external flash memory, I would add that the PicoBlaze is a good alternative to direct HDL coding. It has a very small footprint (although it includes a block RAM) and is easily capable of handling the higher level protocol of writing and erasing the SPI flash. I have used PicoBlaze in parts as small as the XC2S15 where the PicoBlaze handled SPI access as well as serial communication to a host and configuration of a larger Virtex 2 part from the attached SPI flash. Certainly MicroBlaze could also be used for this, but at a much higher cost in FPGA resources, and possibly also in design time. I would only consider MicroBlaze if I already needed it for some other function in the design. Just my $.02 -- Gabor -- Gabor |
|
|
|
嗨,
我正在使用Digilent Atlys板进行我的学术项目工作。 它拥有Numonyx N25Q128闪存。 我想从闪存到FPGA读取数据。 我编写了一个VHDL代码,用于使用Quad COmmand Fast Read模式读取闪存(所有指令和地址并行发送4行),但无法从Flash读取数据。 我不知道我的代码是错还是我正在尝试错误的阅读模式。 我看到这篇帖子反复阅读闪存并且知道问题已经解决了。 有人可以告诉我在什么模式下我应该尝试阅读ata。 即4行中的指令和地址,还是4行中的地址等等..... 如果有人帮我解决工作代码,我将感激不尽。 提前致谢。 问候, Sajeesh 以上来自于谷歌翻译 以下为原文 Hi, I am using Digilent Atlys board for my academic project work. It is having Numonyx N25Q128 flash memory. I wanted to read data from flash to FPGA. I had written a VHDL code for reading the flash using Quad COmmand Fast Read mode(all instruction and address send through 4 lines in parallel), but could not read data from Flash. I don't know whether my code is wrong or I am trying wrong mode of reading. I saw this post reagring flash reading and came to know that the problem was solved. Can some one please tell me in what mode i should try to read the ata. i.e, whether instruction and address in 4 lines or only address in 4 lines, etc..... I will be thankful if some one can help me out with working code. Thanks in advance. Regards, Sajeesh |
|
|
|
“我已经编写了一个用于读取闪存的VHDL代码”你有模拟它吗?如果是这样,你在哪里获得了N25Q128的型号?
------------------------------------------“如果它不起作用 模拟,它不会在板上工作。“ 以上来自于谷歌翻译 以下为原文 "I had written a VHDL code for reading the flash" Did you simulate it? If so, where did you get the model of the N25Q128? ------------------------------------------ "If it don't work in simulation, it won't work on the board." |
|
|
|
亲爱的先生,感谢您的投入。
我会尝试这种阅读方式。 我正在发送四行中的指令和地址,如Quad命令快速读取所述。 谢谢。 以上来自于谷歌翻译 以下为原文 Dear Sir, Thanks for your inputs. I will try this mode of reading. I was sending even instruction and address in 4 lines as mentioned for Quad command fast read. Thanks. |
|
|
|
亲爱的rcinggham,一位朋友向我提供了N25Q128的数据表和一些代码,他也无法读取闪存。
该代码用于Quad命令快速读取,仿真结果如数据表中所述。 但是电路板制造商没有提到配置闪存的模式。谢谢 以上来自于谷歌翻译 以下为原文 Dear rcinggham, One friend provided me the data sheet of N25Q128 and some code, he also could not read the flash. The code is for Quad command fast read and the simulation results are as mentioned in data sheet. But manufacturer of the board didn't mention in which mode the flash is configured. Thanks |
|
|
|
我刚开始使用daq板上的FPGA。
我们将使用n25Q闪存进行参数存储。 在数据手册中,它告诉您如何设置组件配置寄存器,以便在所有四条数据线上发送命令和地址。 以上来自于谷歌翻译 以下为原文 I am just getting started with an FPGA on a daq board. We will be using the n25Q flash for parameter storage. In the data sheet, it tells you how to set the component configuration registers so command and address are sent on all four data line. |
|
|
|
只有小组成员才能发言,加入小组>>
2380 浏览 7 评论
2797 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2262 浏览 9 评论
3335 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2428 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
755浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
543浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
365浏览 1评论
1961浏览 0评论
681浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 11:13 , Processed in 2.073558 second(s), Total 102, Slave 85 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号