mirror of
https://github.com/Minres/RISCV-VP.git
synced 2025-12-17 17:01:35 +00:00
adds separate clock for aclints mtime register
This commit is contained in:
@@ -19,6 +19,8 @@ system::system(sc_core::sc_module_name nm)
|
||||
: sc_core::sc_module(nm)
|
||||
, NAMED(ahb_router, 3, 2)
|
||||
, NAMED(apbBridge, PipelinedMemoryBusToApbBridge_map.size(), 1) {
|
||||
mtime_clk = (1.0 / 32768) * 1_sec;
|
||||
|
||||
core_complex.ibus(ahb_router.target[0]);
|
||||
core_complex.dbus(ahb_router.target[1]);
|
||||
|
||||
@@ -53,6 +55,7 @@ system::system(sc_core::sc_module_name nm)
|
||||
qspi.rst_i(rst_s);
|
||||
core_complex.rst_i(rst_s);
|
||||
|
||||
aclint.mtime_clk_i(mtime_clk);
|
||||
aclint.mtime_o(mtime_s);
|
||||
aclint.mtime_int_o(mtime_int_s);
|
||||
aclint.msip_int_o(msip_int_s);
|
||||
|
||||
@@ -60,6 +60,7 @@ private:
|
||||
scc::memory<128_kB, scc::LT> mem_ram{"mem_ram"};
|
||||
scc::memory<8_kB, scc::LT> boot_rom{"boot_rom"};
|
||||
|
||||
sc_core::sc_signal<sc_core::sc_time> mtime_clk{"mtime_clk"};
|
||||
sc_core::sc_signal<bool, sc_core::SC_MANY_WRITERS> rst_s{"rst_s"}, mtime_int_s{"mtime_int_s"}, msip_int_s{"msip_int_s"};
|
||||
|
||||
sc_core::sc_vector<sc_core::sc_signal<bool, sc_core::SC_MANY_WRITERS>> irq_int_s{"irq_int_s", 32}, local_int_s{"local_int_s", 16};
|
||||
|
||||
2
vpvper
2
vpvper
Submodule vpvper updated: ec61cb97a5...923024bd82
Reference in New Issue
Block a user