-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from Xilinx/2022_1_0
Staging Branch for the 2022.1.0 release
- Loading branch information
Showing
37 changed files
with
1,355 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright (c) 2022 Xilinx, Inc. | ||
* All rights reserved. | ||
* | ||
* Author Zac Blair, Xilinx Research Labs. | ||
* | ||
* This file is part of RapidWright. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
package com.xilinx.rapidwright.design.noc; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Enumerates the four major channel types that are used in a NOC Connection | ||
*/ | ||
public enum ChannelType { | ||
READ("READ"), | ||
READ_REQUEST("READ_REQ"), | ||
WRITE("WRITE"), | ||
WRITE_RESPONSE("WRITE_RESP"); | ||
|
||
private static Map<String,ChannelType> map; | ||
|
||
static { | ||
map = new HashMap<>(); | ||
for(ChannelType e : values()) { | ||
map.put(e.toString(), e); | ||
} | ||
} | ||
|
||
private final String nc; | ||
|
||
ChannelType(String nc){ | ||
this.nc = nc; | ||
} | ||
|
||
public static ChannelType stringToValue(String s) { | ||
return map.get(s); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return nc; | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
src/com/xilinx/rapidwright/design/noc/CommunicationType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright (c) 2022 Xilinx, Inc. | ||
* All rights reserved. | ||
* | ||
* Author Zac Blair, Xilinx Research Labs. | ||
* | ||
* This file is part of RapidWright. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
package com.xilinx.rapidwright.design.noc; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Enumerates AXI traffic communication types. | ||
*/ | ||
public enum CommunicationType { | ||
MEMORY_MAPPED_FULL("MM_ReadWrite"), | ||
MEMORY_MAPPED_READ("MM_ReadOnly"), | ||
MEMORY_MAPPED_WRITE("MM_WriteOnly"), | ||
STREAM("STRM"); | ||
|
||
private static Map<String,CommunicationType> map; | ||
|
||
static { | ||
map = new HashMap<>(); | ||
for(CommunicationType e : values()) { | ||
map.put(e.toString(), e); | ||
} | ||
} | ||
|
||
private final String ct; | ||
|
||
CommunicationType(String ct){ | ||
this.ct = ct; | ||
} | ||
|
||
public static CommunicationType stringToValue(String s) { | ||
return map.get(s); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ct; | ||
} | ||
} |
Oops, something went wrong.