mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update adrdec.sv
Program clean up
This commit is contained in:
parent
7c51dd18dd
commit
b1ee6bfde5
@ -27,8 +27,8 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
module adrdec #(parameter PA_BITS) (
|
module adrdec #(parameter PA_BITS) (
|
||||||
input logic [PA_BITS-1:0] PhysicalAddress, // Physical address to decode
|
input logic [PA_BITS-1:0] PhysicalAddress, // Physical address to decode
|
||||||
input logic [PA_BITS-1:0] Base, Range, // Base and range of peripheral addresses
|
input logic [PA_BITS-1:0] Base, Range, // Base and range of peripheral addresses
|
||||||
input logic Supported, // Is this peripheral supported?
|
input logic Supported, // Is this peripheral supported?
|
||||||
input logic AccessValid, // Is the access type valid?
|
input logic AccessValid, // Is the access type valid?
|
||||||
input logic [1:0] Size, // Size of access
|
input logic [1:0] Size, // Size of access
|
||||||
@ -50,4 +50,3 @@ module adrdec #(parameter PA_BITS) (
|
|||||||
// Select this peripheral if the address matches, the peripheral is supported, and the type and size of access is ok
|
// Select this peripheral if the address matches, the peripheral is supported, and the type and size of access is ok
|
||||||
assign Sel = Match & Supported & AccessValid & SizeValid;
|
assign Sel = Match & Supported & AccessValid & SizeValid;
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user