8000 GitHub - riscv-zju/ZJU-logic-design: ZJU Logic and Computer Design Fundamentals Labs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

riscv-zju/ZJU-logic-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Digital Logic Design 101 [Chisel Version]

This repository contains a chisel version of the laboratory of the Zhejiang University Logic and Computer Design Fundamentals course.

Notice: The board used here is Nexys A7, not the SWORD board used in the class.

How to Compile

Currently, we support compile (chisel -> verilog) and sythesis (verilog -> bit) process. To compile the code, you need install sbt from here.

You can select your target lab and task by using LAB and CONFIG variables.

# After install sbt
make LAB=4 CONFIG=LampCtrlTarget

Labs List:

  • Lab4: LampCtrlTarget, LampCtrlDelayTarget
  • Lab5: DecodeTestTarget, LampCtrlTarget
  • Lab6: DecodeTestTarget
  • Lab7: TopTarget
  • Lab8: TopTarget
  • Lab11: cnt4bTarget, cnt16bTarget
  • Lab12: Task1Target, Task2Target, Task3Target
  • Lab13: LEDTarget, SEGTarget
  • Lab14: ClockTarget

How to Simulation

Using chisel-test is not a good choice, I recommend you use iverilog, verilator, vivado and other EDA (e.g. synopsys vcs, mentor modelsim) to simulate your design.

How to Sythesis

Use synthesis target to generate the bitstream.

make synthesis LAB=4 CONFIG=LampCtrlTarget

Use fpga target to program your board.

make fpga LAB=4 CONFIG=LampCtrlTarget

In vivado IDE, select Flow - Open Hardware Manager to load bit file under build/vivado/digit/lab? into your board.

About

ZJU Logic and Computer Design Fundamentals Labs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0