mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 05:07:21 -04:00
Smaller synthesis related fixes
This commit is contained in:
parent
340fad662f
commit
d1a3450997
3 changed files with 14 additions and 5 deletions
|
@ -259,8 +259,10 @@ module load_unit (
|
|||
// latch physical address
|
||||
always_ff @(posedge clk_i or negedge rst_ni) begin
|
||||
if (~rst_ni) begin
|
||||
CS <= IDLE;
|
||||
paddr_q <= '0;
|
||||
end else begin
|
||||
CS <= NS;
|
||||
paddr_q <= paddr_n;
|
||||
end
|
||||
end
|
||||
|
|
|
@ -109,6 +109,7 @@ module lsu #(
|
|||
logic [63:0] ld_vaddr;
|
||||
logic [63:0] st_vaddr;
|
||||
logic translation_req;
|
||||
logic translation_valid;
|
||||
logic [63:0] mmu_vaddr;
|
||||
logic [63:0] paddr;
|
||||
|
||||
|
@ -280,9 +281,11 @@ module lsu #(
|
|||
translation_req = 1'b0;
|
||||
mmu_vaddr = 64'b0;
|
||||
if (st_translation_req) begin
|
||||
mmu_vaddr = st_vaddr;
|
||||
translation_req = 1'b1;
|
||||
mmu_vaddr = st_vaddr;
|
||||
end else if (ld_translation_req) begin
|
||||
mmu_vaddr = ld_vaddr;
|
||||
translation_req = 1'b1;
|
||||
mmu_vaddr = ld_vaddr;
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -expand -group LSU /lsu_tb/dut/*
|
||||
add wave -noupdate -expand -group mem_arbiter /lsu_tb/dut/mem_arbiter_i/*
|
||||
add wave -noupdate -group store_queue /lsu_tb/dut/store_queue_i/*
|
||||
add wave -noupdate -group lsu /lsu_tb/dut/*
|
||||
add wave -noupdate -group mem_arbiter /lsu_tb/dut/mem_arbiter_i/*
|
||||
add wave -noupdate -group store_unit /lsu_tb/dut/store_unit_i/*
|
||||
add wave -noupdate -group store_queue /lsu_tb/dut/store_unit_i/store_queue_i/*
|
||||
add wave -noupdate -group load_unit /lsu_tb/dut/load_unit_i/*
|
||||
add wave -noupdate -group fifo /lsu_tb/dut/load_unit_i/fifo_i/*
|
||||
|
||||
add wave -noupdate -group mmu /lsu_tb/dut/mmu_i/*
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {{Cursor 1} {454 ns} 0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue