I added a comparator, I updated the control unit so that it now uses the 4 bit ALU opcode instead of the 3 bit from before. I added testbenches to the control unit and the slt and comparator modules. However, like before I unable to run the simulation on my desktop. Finally, i added the program code for the equation solver as a test bench in the CPU9bit module
12 lines
449 B
Tcl
12 lines
449 B
Tcl
set curr_wave [current_wave_config]
|
|
if { [string length $curr_wave] == 0 } {
|
|
if { [llength [get_objects]] > 0} {
|
|
add_wave /
|
|
set_property needs_save false [current_wave_config]
|
|
} else {
|
|
send_msg_id Add_Wave-1 WARNING "No top level signals found. Simulator will start without a wave window. If you want to open a wave window go to 'File->New Waveform Configuration' or type 'create_wave_config' in the TCL console."
|
|
}
|
|
}
|
|
|
|
run 1000ns
|