mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor updates
This commit is contained in:
parent
cf9172b8fc
commit
8db77ea1cd
7 changed files with 14 additions and 16 deletions
|
@ -119,7 +119,8 @@ module VX_cluster import VX_gpu_pkg::*; #(
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
VX_dcr_bus_if socket_dcr_bus_tmp_if();
|
||||
assign socket_dcr_bus_tmp_if.write_valid = dcr_bus_if.write_valid && (dcr_bus_if.write_addr >= `VX_DCR_BASE_STATE_BEGIN && dcr_bus_if.write_addr < `VX_DCR_BASE_STATE_END);
|
||||
wire is_dcr_base_addr = (dcr_bus_if.write_addr >= `VX_DCR_BASE_STATE_BEGIN && dcr_bus_if.write_addr < `VX_DCR_BASE_STATE_END);
|
||||
assign socket_dcr_bus_tmp_if.write_valid = dcr_bus_if.write_valid && is_dcr_base_addr;
|
||||
assign socket_dcr_bus_tmp_if.write_addr = dcr_bus_if.write_addr;
|
||||
assign socket_dcr_bus_tmp_if.write_data = dcr_bus_if.write_data;
|
||||
|
||||
|
|
|
@ -14,12 +14,9 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
#log_wave -r *
|
||||
#run all
|
||||
#exit
|
||||
log_wave -r *
|
||||
|
||||
open_vcd xsim_dump.vcd
|
||||
log_vcd /*
|
||||
run all
|
||||
close_vcd
|
||||
exit
|
||||
#open_vcd xsim_dump.vcd
|
||||
#log_vcd /*
|
||||
#run all
|
||||
#close_vcd
|
|
@ -117,7 +117,7 @@ endif
|
|||
|
||||
# Debugging
|
||||
ifdef DEBUG
|
||||
VPP_FLAGS += -g --debug.protocol all
|
||||
VPP_FLAGS += -g --optimize 0 --debug.protocol all
|
||||
ifneq ($(TARGET), hw)
|
||||
VPP_FLAGS += --vivado.prop fileset.sim_1.xsim.elaborate.debug_level=all
|
||||
CFLAGS += -DDEBUG_LEVEL=$(DEBUG) $(DBG_TRACE_FLAGS)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[Runtime]
|
||||
[Runtime]
|
||||
runtime_log=console
|
||||
|
||||
[Emulation]
|
||||
#debug_mode=batch
|
||||
#user_pre_sim_script=xsim.tcl
|
||||
debug_mode=batch
|
||||
user_pre_sim_script=@VORTEX_HOME@/hw/syn/xilinx/scripts/xsim.tcl
|
||||
|
||||
[Debug]
|
||||
profile=true
|
|
@ -125,7 +125,7 @@ public:
|
|||
}
|
||||
|
||||
int init() {
|
||||
// force random values for unitialized signals
|
||||
// force random values for uninitialized signals
|
||||
Verilated::randReset(VERILATOR_RESET_VALUE);
|
||||
Verilated::randSeed(50);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ void sim_trace_enable(bool enable) {
|
|||
class Processor::Impl {
|
||||
public:
|
||||
Impl() : dram_sim_(MEM_CLOCK_RATIO) {
|
||||
// force random values for unitialized signals
|
||||
// force random values for uninitialized signals
|
||||
Verilated::randReset(VERILATOR_RESET_VALUE);
|
||||
Verilated::randSeed(50);
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public:
|
|||
}
|
||||
|
||||
int init() {
|
||||
// force random values for unitialized signals
|
||||
// force random values for uninitialized signals
|
||||
Verilated::randReset(VERILATOR_RESET_VALUE);
|
||||
Verilated::randSeed(50);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue