Skip to content

Commit

Permalink
Merge pull request #77 from daveshah1/v2xml-work
Browse files Browse the repository at this point in the history
Improvements to XML from Verilog Generation
  • Loading branch information
mithro committed Mar 15, 2018
2 parents 1bb486c + c63ee6c commit 49cc837
Show file tree
Hide file tree
Showing 54 changed files with 375 additions and 587 deletions.
4 changes: 0 additions & 4 deletions artix7/primitives/slicel/carry4/carry4.model.xml

This file was deleted.

30 changes: 0 additions & 30 deletions artix7/primitives/slicel/carry4/carry4.pb_type.xml

This file was deleted.

13 changes: 0 additions & 13 deletions artix7/primitives/slicel/carry4/carry4.sim.v

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 23 additions & 0 deletions artix7/primitives/slicel/carry4_modes/carry4_modes.sim.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
`include "carry4/carry4.sim.v"
`include "carry4_split/carry4_split.sim.v"

(* MODES = "SPLIT; COMPLETE" *)
module CARRY4_MODES(CO, O, CIN, DI, S);

output wire [3:0] CO;
output wire [3:0] O;
input CIN;
input [3:0] DI;
input [3:0] S;
parameter MODE = "SPLIT";

generate
if (MODE == "SPLIT") begin
CARRY4_SPLIT split_i(.CO(CO), .O(O), .CIN(CIN), .DI(DI), .S(S));
end else if (MODE == "COMPLETE") begin
CARRY4 complete_i(.CO(CO), .O(O), .CIN(CIN), .DI(DI), .S(S));
end
endgenerate


endmodule
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
`include "carry4_Nxor/carry4_cxor.sim.v"
`include "carry4_Nxor/carry4_dxor.sim.v"

(* ALTERNATIVE_TO="CARRY4_TOP" *)
module CARRY4_SPLIT(CO, O, CIN, DI, S);

output wire [3:0] CO;
Expand Down
2 changes: 1 addition & 1 deletion artix7/primitives/slicel/slicel.model.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<models xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="carry4/carry4.model.xml" xpointer="xpointer(models/child::node())" />
<xi:include href="carry4_modes/carry4_modes.model.xml" xpointer="xpointer(models/child::node())" />
<xi:include href="muxes/f8mux/f8mux.model.xml" xpointer="xpointer(models/child::node())" />
<xi:include href="muxes/f7amux/f7amux.model.xml" xpointer="xpointer(models/child::node())" />
<xi:include href="muxes/f7bmux/f7bmux.model.xml" xpointer="xpointer(models/child::node())" />
Expand Down

0 comments on commit 49cc837

Please sign in to comment.