mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Merge branch 'main' of github.com:davidharrishmc/riscv-wally into main
This commit is contained in:
commit
7e05935348
@ -8,7 +8,7 @@ onbreak {resume}
|
|||||||
# create library
|
# create library
|
||||||
vlib worklib
|
vlib worklib
|
||||||
|
|
||||||
vlog -lint -work worklib fma16.v testbench.v
|
vlog -lint -sv -work worklib fma16.v testbench.v
|
||||||
vopt +acc worklib.testbench_fma16 -work worklib -o testbenchopt
|
vopt +acc worklib.testbench_fma16 -work worklib -o testbenchopt
|
||||||
vsim -lib worklib testbenchopt
|
vsim -lib worklib testbenchopt
|
||||||
|
|
||||||
|
@ -176,11 +176,7 @@ module plic (
|
|||||||
end
|
end
|
||||||
|
|
||||||
// pending interrupt requests
|
// pending interrupt requests
|
||||||
assign nextIntPending =
|
assign nextIntPending = (intPending | requests) & ~intInProgress;
|
||||||
(intPending | // existing pending requests
|
|
||||||
(requests & ~intInProgress)) & // assert new requests (if they aren't already being serviced)
|
|
||||||
~({`N{((entry == 24'h200004) & memread)}} << (intClaim[0]-1)) & // deassert requests that just completed
|
|
||||||
~({`N{((entry == 24'h201004) & memread)}} << (intClaim[1]-1));
|
|
||||||
flopr #(`N) intPendingFlop(HCLK,~HRESETn,nextIntPending,intPending);
|
flopr #(`N) intPendingFlop(HCLK,~HRESETn,nextIntPending,intPending);
|
||||||
|
|
||||||
// context-dependent signals
|
// context-dependent signals
|
||||||
|
Loading…
Reference in New Issue
Block a user