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_add.v | |
parent | 73fd79329a415514027abb976b76c890845aab0f (diff) |
Added generic/vendor-specific primitive selector for simulation.
Diffstat (limited to 'src/rtl/pe/modexpa7_pe_add.v')
-rw-r--r-- | src/rtl/pe/modexpa7_pe_add.v | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/rtl/pe/modexpa7_pe_add.v b/src/rtl/pe/modexpa7_pe_add.v index 9cde591..467be5d 100644 --- a/src/rtl/pe/modexpa7_pe_add.v +++ b/src/rtl/pe/modexpa7_pe_add.v @@ -47,14 +47,27 @@ module modexpa7_pe_add output c_out
);
- reg [32: 0] s_reg;
- assign s = s_reg[31: 0];
- assign c_out = s_reg[32];
-
- always @(posedge clk)
- //
- if (ce) s_reg <= {1'b0, a} + {1'b0, b} + {32'd0, c_in};
+ // + // Include Primitive Selector + // + `include "modexpa7_pe_settings.v" + + + // + // Instantiate Vendor/Generic Primitive + // + `ADDER32_PRIMITIVE adder32_inst + ( + .clk(clk),
+ .ce(ce), + .a(a), + .b(b), + .s(s), + .c_in(c_in), + .c_out(c_out) + ); +
endmodule
|