-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes for Verilog module instantiation. Issue xxx
- Loading branch information
Showing
7 changed files
with
120 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
primitive UDP_MUX2 (Q, A, B, SL); | ||
output Q; | ||
input A, B, SL; | ||
table | ||
// A B SL : Q | ||
0 0 ? : 0 ; | ||
1 1 ? : 1 ; | ||
0 ? 0 : 0 ; | ||
1 ? 0 : 1 ; | ||
? 0 1 : 0 ; | ||
? 1 1 : 1 ; | ||
x ? 0 : x ; | ||
? x 1 : x ; | ||
1 0 x : x ; | ||
0 1 x : x ; | ||
endtable | ||
endprimitive | ||
|
||
module SLE_Prim (output Q, | ||
input ADn, | ||
input ALn, | ||
input CLK, | ||
input D, | ||
input LAT, | ||
input SD, | ||
input EN, | ||
input SLn); | ||
|
||
UDP_MUX2 mux_0(SYNC, SD, D, SLn); | ||
UDP_MUX2 mux_1(DATA, Q, SYNC, EN); | ||
endmodule |
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,20 @@ | ||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
|
||
entity polarfire_test is | ||
end entity; | ||
|
||
architecture test of polarfire_test is | ||
component SLE_Prim is | ||
port ( Q : out std_logic; | ||
ADn, ALn, CLK, D, LAT, SD, EN, SLn : in std_logic ); | ||
end component; | ||
|
||
signal Q : std_logic; | ||
signal ADn, ALn, CLK, D, LAT, SD, EN, SLn : std_logic; | ||
begin | ||
|
||
u: component SLE_Prim | ||
port map (Q, ADn, ALn, CLK, D, LAT, SD, EN, SLn); | ||
|
||
end architecture; |
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