-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALU completed, testbed finished, all tests passed.
- Loading branch information
Showing
14 changed files
with
2,131 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
proc AddWaves {} { | ||
;#Add waves we're interested in to the Wave window | ||
add wave -position end sim:/alu_tb/opcode_t | ||
add wave -position end sim:/alu_tb/input1_t | ||
add wave -position end sim:/alu_tb/input2_t | ||
add wave -position end sim:/alu_tb/clk | ||
add wave -position end sim:/alu_tb/reset_t | ||
add wave -position end sim:/alu_tb/output_t | ||
add wave -position end sim:/alu_tb/status_t | ||
} | ||
|
||
vlib work | ||
|
||
;# Compile components if any | ||
vcom alu_16.vhd | ||
vcom alu_tb.vhd | ||
|
||
;# Start simulation | ||
vsim alu_tb | ||
|
||
;# Add the waves | ||
|
||
AddWaves | ||
|
||
;# Generate a clock with 1ns period | ||
force -deposit clk 0 0 ns, 1 0.5 ns -repeat 1 ns | ||
|
||
|
||
;# Run for 50 ns | ||
run 50ns |
Oops, something went wrong.