diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-07-01 20:11:20 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-07-01 20:11:20 +0300 |
commit | a62861f3c91e88020d2c54e6500f431b9edde1d8 (patch) | |
tree | c9e9b1ff4790df8070bc6da0bb4e90f4a0cef134 /src/rtl/pe/modexpa7_pe_sub.v | |
parent | 73fd79329a415514027abb976b76c890845aab0f (diff) |
Added generic/vendor-specific primitive selector for simulation.
Diffstat (limited to 'src/rtl/pe/modexpa7_pe_sub.v')
-rw-r--r-- | src/rtl/pe/modexpa7_pe_sub.v | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/rtl/pe/modexpa7_pe_sub.v b/src/rtl/pe/modexpa7_pe_sub.v index 85c5f65..2da4900 100644 --- a/src/rtl/pe/modexpa7_pe_sub.v +++ b/src/rtl/pe/modexpa7_pe_sub.v @@ -47,14 +47,27 @@ module modexpa7_pe_sub output b_out
);
- reg [32: 0] d_reg;
- assign d = d_reg[31: 0];
- assign b_out = d_reg[32];
-
- always @(posedge clk)
- //
- if (ce) d_reg <= {1'b0, a} - {1'b0, b} - {32'd0, b_in};
+ // + // Include Primitive Selector + // + `include "modexpa7_pe_settings.v" + + + // + // Instantiate Vendor/Generic Primitive + // + `SUBTRACTOR32_PRIMITIVE subtractor32_inst + ( + .clk(clk),
+ .ce(ce), + .a(a), + .b(b), + .d(d), + .b_in(b_in), + .b_out(b_out) + );
+ endmodule
|