Hook up power control signals on dual-core tb
This commit is contained in:
parent
fcbc4f6805
commit
e98d7b41ea
|
@ -216,14 +216,26 @@ assign hart_reset_done = {rst_n_cpu1, rst_n_cpu0};
|
||||||
`endif
|
`endif
|
||||||
`include `CONFIG_HEADER
|
`include `CONFIG_HEADER
|
||||||
|
|
||||||
|
wire pwrup_req_cpu0;
|
||||||
|
wire pwrup_req_cpu1;
|
||||||
|
wire unblock_out_cpu0;
|
||||||
|
wire unblock_out_cpu1;
|
||||||
|
|
||||||
hazard3_cpu_1port #(
|
hazard3_cpu_1port #(
|
||||||
.MHARTID_VAL (32'h0000_0000),
|
.MHARTID_VAL (32'h0000_0000),
|
||||||
`define HAZARD3_CONFIG_INST_NO_MHARTID
|
`define HAZARD3_CONFIG_INST_NO_MHARTID
|
||||||
`include "hazard3_config_inst.vh"
|
`include "hazard3_config_inst.vh"
|
||||||
) cpu0 (
|
) cpu0 (
|
||||||
.clk (clk),
|
.clk (clk),
|
||||||
|
.clk_always_on (clk),
|
||||||
.rst_n (rst_n_cpu0),
|
.rst_n (rst_n_cpu0),
|
||||||
|
|
||||||
|
.pwrup_req (pwrup_req_cpu0),
|
||||||
|
.pwrup_ack (pwrup_req_cpu0),
|
||||||
|
.clk_en (),
|
||||||
|
.unblock_out (unblock_out_cpu0),
|
||||||
|
.unblock_in (unblock_out_cpu1),
|
||||||
|
|
||||||
.haddr (i_haddr),
|
.haddr (i_haddr),
|
||||||
.hexcl (i_hexcl),
|
.hexcl (i_hexcl),
|
||||||
.hwrite (i_hwrite),
|
.hwrite (i_hwrite),
|
||||||
|
@ -275,8 +287,15 @@ hazard3_cpu_1port #(
|
||||||
`include "hazard3_config_inst.vh"
|
`include "hazard3_config_inst.vh"
|
||||||
) cpu1 (
|
) cpu1 (
|
||||||
.clk (clk),
|
.clk (clk),
|
||||||
|
.clk_always_on (clk),
|
||||||
.rst_n (rst_n_cpu1),
|
.rst_n (rst_n_cpu1),
|
||||||
|
|
||||||
|
.pwrup_req (pwrup_req_cpu1),
|
||||||
|
.pwrup_ack (pwrup_req_cpu1),
|
||||||
|
.clk_en (),
|
||||||
|
.unblock_out (unblock_out_cpu1),
|
||||||
|
.unblock_in (unblock_out_cpu0),
|
||||||
|
|
||||||
.haddr (d_haddr),
|
.haddr (d_haddr),
|
||||||
.hexcl (d_hexcl),
|
.hexcl (d_hexcl),
|
||||||
.hwrite (d_hwrite),
|
.hwrite (d_hwrite),
|
||||||
|
|
Loading…
Reference in New Issue