代写EEL 4720/5721 – Reconfigurable Computing帮做Python编程

Simple Pipeline

EEL 4720/5721 – Reconfigurable Computing

Objective:

In this lab, you will be implementing a simple pipelined circuit. The circuit will utilize one 32-bit block RAM to continually provide 4 8-bit inputs per cycle, and one 17-bit block RAM to store an output each cycle. In software, you will initially transfer data from the microprocessor into the input block RAM, specify the size of the input, start the circuit, and then wait for completion, at which point the software will read data from the output blockRAM and output it to the screen.

You will again  be working in groups of 2 on this project.  Unless you are an  EDGE student or have special permission from the instructor, you must work in a group of 2. Note that those in the overflow section are not EDGE students, and must work in a group of 2. Please only submit once per group.

EDGE INSTRUCTIONS:

EDGE students must complete the entire lab, but will receive more partial credit than people working in groups.

Part 1 - VHDL

1)  Download the provided code. The directory structure is the same as the previous lab.

2)  Read  the following  pseudocode, which  is the functionality that your circuit will implement. Note   that   your   actual   code   will   look   nothing   like   this.   This pseudocode is simply intended to help you understand the functionality.

for(i=0,j=0; j < OUTPUT_SIZE; i += 4, j++) {

a[j] = b[i]*b[i+1] + b[i+2]*b[i+3]; }

3)  Implement the following datapath:

As shown, the datapath has 4 8-bit inputs which connect to two multipliers followed by an adder. The green boxes are all registers of the specified widths. You can create the datapath entity however you want, but it must synthesize to the exact structure shown. The multipliers should generate a 16-bit output and the adder should produce a 17-bit output to prevent overflow.

4)  Implement the rest of the circuit:

The overall structure of the circuit is shown above. You will use a memory map similar to the previous lab. However, for this lab, the memory map also handles transferring data to and from block RAMs. This code is already provided for you. However, you must create all other components.

The controller works similarly to previous labs. It will initially wait for a go signal to be asserted from software via the memory map. When go is asserted, the controller will read from a size  register (not shown) that is also specified from software using the memory map, and will then enable the input address generator which will produce the corresponding  number  of  addresses   needed  to   produce  the   input  stream   of  the specified size from the top  RAM. The controller will also enable the output address generator used for storing outputs from the datapath into the bottom RAM.

The address generators in this lab are essentially counters that count from a specified starting address (in this case, from address 0) for the number of addresses specified by size. The address generator’s output (i.e., the current address) should connect to each RAM. The address generator will likely also include control signals for reading or writing to RAM, although there are numerous different implementations.

The datapath should be implemented as shown earlier. However, each register in the datapath has an enable signal (not shown) that controls stalls. There are numerous ways to control these enable signals. One potential way is to add a control signal from the controller that enables the datapath at the appropriate time. With this approach, the controller would start the input address generator, wait a certain number of cycles, then enable the datapath, and then enable the output address generator at the exact cycle that would store the first datapath output. Although this approach works for this lab, it does not work well for more complex circuits where latencies are not known or where latencies change. A more flexible way of enabling the datapath is to include an extra flip-flop at each level of the pipeline that represents whether or not the data at that level is valid. With this approach, you wouldn’t ever stall the datapath, but would instead change the output address generator to ignore outputs where the valid bit is 0. Either approach is acceptable for this lab.

The RAMs are implemented using provided code that the synthesis tool will infer as a block RAM. To enable communication with your custom block RAMs, I have included code in the memory map entity that demonstrates this functionality. I encourage you to understand the provided code because you will need it for future labs.

5)  Simulate  your  user_app entity with the provided testbench and fix any errors. Like  previous  labs, this testbench  uses different timings than actual on-board execution, so you might want to expand it. You also should change the size of the test in the testbench. Since I’m not providing a solution for the pipeline, you can simulate in Modelsim or Vivado.

6)  Create  a  Vivado  project,  add  the  accelerator  IP  as  an  AXI  peripheral,  and generate a bitfile. Rename the bitfile to lab4.bit. Copy the bitfile to your project directory on reconfig.hcs.ufl.edu.

Part 2 - Software

To communicate with the custom circuit, you will again need software that transfers data to the input block RAM, sets the input size, sets the go signal, waits for the done signal, and then reads the outputs from the output block RAM. For this lab, I have provided all software code to demonstrate how to communicate with the block RAMs through the memory map. Make sure you understand the provided code.

IMPORTANT: You can change the software code for testing, but you do not need to submit it. The grader will use the provided software code.

1)  Upload the provided software code to reconfig.hcs.ufl.edu

2)  Compile the software code by running make

3)  Execute your design with:

zed_schedule ./zed_app lab4.bit > test.txt

4)  Check the output for errors using:

python3 grade.py test.txt

SUBMISSION INSTRUCTIONS (One submission per group)

Make sure all group member names are at the top of every file!

Create a directory with your UFID. Give it the following structure:

ufid/

readme.txt                          // Group members, anything that the grader needs to

// be aware of

lab4.bit                                // DON’T FORGET!!!!

pipeline_1.0/                       // IP core from repository with this exact name

// Make sure all VHDL is included

Zip the entire directory and submit the ufid.zip file.

COMMON PROBLEMS

●   You may receive the following warning in ModelSim: “Case choice must be a

locally static expression” . Although in general you should avoid this warning, it is safe to ignore for this lab. The warning is caused by the use of a function when defining the constants used in the when statements. Most VHDL tools now ignore this issue.




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图