Skip to content

Latest commit

 

History

History

hw3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Basic usage

To run the evaluation:

  1. Enter the subject folder, such as ALU.
iverilog -f alu.f 
vvp ./a.out

For CPU case, you can test the test cases separately:

iverilog -D T1 -f cpu.f   
vvp ./a.out

T1 means the test case you want.

Notes

  • sequential part is to update pipeline registers, which hold information produced in previous cycle.
  • combinational part is the operations happen in the stages.

Reference

https://hom-wang.gitbooks.io/verilog-hdl/content/Chapter_02.html