WEEK 1 HOMEWORK

Noah Smith

1.      Use gvim and Vivado to simulate the examples in sections 2.1, 2.2, and 2.3. Post snapshots of gvim windows and vivado simulation results in your report. You must create testbenches for your simulations. (20 points)

Replicating 2.1

A computer screen shot of a computer program

Description automatically generated

 

Replicating part 2.2. This went very smoothly.

A screenshot of a computer program

Description automatically generated

A screenshot of a computer

Description automatically generated

 

Replicating par 2.3. This was relatively simple.

A screenshot of a computer program

Description automatically generatedA screenshot of a computer

Description automatically generated

2.     
Run a simulation to show the difference between blocking and non-blocking assignment in the example in section 2.4. (20 points)

This took me a while to get the test bench running, and still didn’t get the clock  to run properly

A screenshot of a computer program

Description automatically generated

This simulation worked correctly. The nonblocking assignment executed all at once on the first rising edge of the clock cycle. The blocking assignment executed the first assignment on the first rising edge of the clock cycle, there was only one clock cycle so this was all that got executed.

A screenshot of a computer

Description automatically generated

3.     
 Repeat the simulation example in section 2.5. (20 points)

A screenshot of a computer

Description automatically generated

 

4.     
 For the example in section 2.5, move the 20 ns delay from Line 25 to Line 24 and run the simulation. (20 points)

A computer screen with text

Description automatically generated

A screenshot of a computer

Description automatically generated

5.      Use gvim and vivado, repeat the example in section 2.6. Post the gvim windows and the vivado simulation windows for credit. (20 points)

 

A paper with lines drawn on it

Description automatically generated

A computer screen with text on it

Description automatically generated

A screenshot of a computer

Description automatically generated