tag:blogger.com,1999:blog-2731449680288404691.post7940533881877156634..comments2024-03-13T19:08:41.396-07:00Comments on FPGA Projects, Verilog Projects, VHDL Projects - FPGA4student.com: Verilog code for Microcontroller (Part 3- Verilog code)FPGA4studenthttp://www.blogger.com/profile/11381124680279432980noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-2731449680288404691.post-19657844135145418222020-10-19T21:11:24.841-07:002020-10-19T21:11:24.841-07:00Why is the Carry Out set to the inverse of the MSB...Why is the Carry Out set to the inverse of the MSB?anonhttps://www.blogger.com/profile/18435287848094155812noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-68036701864936192762020-05-03T09:36:59.303-07:002020-05-03T09:36:59.303-07:00sir
can you make one video on simulation?sir <br /> can you make one video on simulation?Anonymoushttps://www.blogger.com/profile/02103337058321702827noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-89422102241957348952020-03-31T23:51:35.187-07:002020-03-31T23:51:35.187-07:00Hello, I am facing the problem the program_mem. da...Hello, I am facing the problem the program_mem. dat is not foundAnonymoushttps://www.blogger.com/profile/08585745699405587220noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-6026617586788426072020-03-31T23:48:04.581-07:002020-03-31T23:48:04.581-07:00Hello,can you help me too ? I am also facing the s...Hello,can you help me too ? I am also facing the same probem. It is the showing the file cannot be found.Anonymoushttps://www.blogger.com/profile/08585745699405587220noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-3001537739439569552018-11-11T22:13:46.151-08:002018-11-11T22:13:46.151-08:00Testbench was provided. Inputs are the instruction...Testbench was provided. Inputs are the instructions you will put into the program memory. To verify the operations, run simulation and check the register and memory content.FPGA4studenthttps://www.blogger.com/profile/11381124680279432980noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-15481093077988813292018-11-11T06:50:15.759-08:002018-11-11T06:50:15.759-08:00what are the inputs i have to give in the test ben...what are the inputs i have to give in the test bench , can i have the code for the test bench ....after the code that you have provided in the above (part-3) i am getting clk and sel waveforms as output<br />cea-aluminihttps://www.blogger.com/profile/15152672569241322327noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-70003556114474440842018-10-29T17:20:39.486-07:002018-10-29T17:20:39.486-07:00Sure. You can use Vivado for this project.Sure. You can use Vivado for this project.FPGA4studenthttps://www.blogger.com/profile/11381124680279432980noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-73227550396054941312018-10-27T11:13:52.687-07:002018-10-27T11:13:52.687-07:00will this code execute in VIVADO 2017.4will this code execute in VIVADO 2017.4cea-aluminihttps://www.blogger.com/profile/15152672569241322327noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-82767040072140958142018-01-26T16:28:19.470-08:002018-01-26T16:28:19.470-08:00Nope. The code were already correct. IR[8]==1 =>...Nope. The code were already correct. IR[8]==1 => MUX1_Sel=0 to select IR[7:0] for jump or branch instructions (IR[8]=1). Otherwise (IR[8]==0), MUX1_Sel=1 to increase PC by 1 (Adder_Out). Check the MUX1 code.FPGA4studenthttps://www.blogger.com/profile/11381124680279432980noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-15712283358017617892018-01-16T03:29:15.394-08:002018-01-16T03:29:15.394-08:00In Control Unit
else if(IR[8]==0) //// This sh...In Control Unit<br /><br /> else if(IR[8]==0) //// This should be else if (IR[8]==1)? I guess or Is it correct?<br /> begin<br /> PC_E = 1; <br /> MUX1_Sel = 1; <br /> end<br /> else<br /> begin<br /> PC_E = 1; <br /> MUX1_Sel = 0; <br /> end<br /> end<br /> end<br />endmoduleSidhttps://www.blogger.com/profile/09802064864390910337noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-42732659277737675642018-01-15T13:06:19.001-08:002018-01-15T13:06:19.001-08:00Thanks. It works fine now. Just one more question,...Thanks. It works fine now. Just one more question, this is a 12 bit Microcontroller right or 8 bit Microcontroller?Sidhttps://www.blogger.com/profile/09802064864390910337noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-21520207639014344742017-12-04T19:03:17.799-08:002017-12-04T19:03:17.799-08:00Save the file into the same folder that you run th...Save the file into the same folder that you run the code. The file should be named "program_mem.dat" not "program_mem.dat.txt".Anonymoushttps://www.blogger.com/profile/14472547411595467898noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-63802766075045363362017-12-02T22:37:24.592-08:002017-12-02T22:37:24.592-08:00I created a text file, renamed it "program_me...I created a text file, renamed it "program_mem.dat". Then copied one of the test program to it and then saved the text file in the folder where my verilog files are being saved. Still it is showing error that file cannot be found. Please helpSidhttps://www.blogger.com/profile/17209149999447813765noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-20534531377582928502017-10-19T02:41:35.410-07:002017-10-19T02:41:35.410-07:00You need to create this file and copy the provided...You need to create this file and copy the provided test program to the file "program_mem.dat" which you created. Then, run simulation and see results on simulation waveform.Anonymoushttps://www.blogger.com/profile/14472547411595467898noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-69934852305379813252017-10-19T01:33:11.673-07:002017-10-19T01:33:11.673-07:00Can you please upload the "program_mem.dat&qu...Can you please upload the "program_mem.dat" file? I have error when simulate the above code for progran_mem.dat file.Can you please tell me how do i simulate with that dat file.<br />Thank youAnonymoushttps://www.blogger.com/profile/00033994188035340598noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-9041919988508332362017-09-09T08:57:40.362-07:002017-09-09T08:57:40.362-07:00Add necessary signals to simulation waveform to se...Add necessary signals to simulation waveform to see the results. You need to understand the program which is stored in the instruction memory so that you can understand the results on simulation waveformAnonymoushttps://www.blogger.com/profile/14472547411595467898noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-58919340059856920912017-09-09T08:52:46.314-07:002017-09-09T08:52:46.314-07:00I am using Xilinx ISE 14.7, I have created the txt...I am using Xilinx ISE 14.7, I have created the txt file copied the contents of "test program 1" into it and renamed it to "program_mem.dat", and then tried to simulate. From where can shall I see the results?Shubham Sarkarhttps://www.blogger.com/profile/05469957237906803836noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-19640025874345396642017-09-09T06:37:03.304-07:002017-09-09T06:37:03.304-07:00$readmemb("program_mem.dat", program_mem...$readmemb("program_mem.dat", program_mem,0,9);<br />You need to load different test program into the "program_mem.dat" file and run simulation. Yes, only clock and reset provided, but you need to look at the simulation waveform and data memory to see the operation of the MCU.Anonymoushttps://www.blogger.com/profile/14472547411595467898noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-4003412086834980692017-09-09T06:19:20.563-07:002017-09-09T06:19:20.563-07:00I am not able to simulate it properly. Could you p...I am not able to simulate it properly. Could you please help me with the test program? Also, the simulation shows only 2 elements - clock and reset. Please help. Shubham Sarkarhttps://www.blogger.com/profile/05469957237906803836noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-44817026851780442682017-07-14T01:48:56.567-07:002017-07-14T01:48:56.567-07:00The test program are there. Test program 1 -> 4...The test program are there. Test program 1 -> 4. Copy it into the program_mem.dat.Anonymoushttps://www.blogger.com/profile/14472547411595467898noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-60382043407122599002017-06-23T05:42:04.300-07:002017-06-23T05:42:04.300-07:00Sir, can u please share "program_mem.dat"...Sir, can u please share "program_mem.dat" u hv mentioned in $readmemb.Indian Factshttps://www.blogger.com/profile/07656464947139503052noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-8385142859850188932017-06-16T23:35:37.968-07:002017-06-16T23:35:37.968-07:00You can refer to this: http://www.fpga4student.com...You can refer to this: http://www.fpga4student.com/2016/12/a-complete-8-bit-microcontroller-in-vhdl.html <br />In this microcontroller, memory and IO are added as you want.Adminhttp://fpga4student.comnoreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-65137775168303205102017-06-16T23:27:23.347-07:002017-06-16T23:27:23.347-07:00Sir, i want to add one MMIO 8 bit PortA, to this ...Sir, i want to add one MMIO 8 bit PortA, to this microntroller (say at aadress 0x08 of DRAM) exactely as is done in every micrcontroller, so that it is possible to read or write to uC PORT using its address only. So, pls suggest possible changesbin the code.Anonymoushttps://www.blogger.com/profile/06732530778585474754noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-78697287608797654182017-05-11T22:56:39.696-07:002017-05-11T22:56:39.696-07:00Updated, thanks.Updated, thanks.FPGA4studenthttps://www.blogger.com/profile/11381124680279432980noreply@blogger.comtag:blogger.com,1999:blog-2731449680288404691.post-30502922068480556212017-05-10T07:18:05.011-07:002017-05-10T07:18:05.011-07:00Thanks !Thanks !Anonymoushttps://www.blogger.com/profile/08308182100968075308noreply@blogger.com