mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 03:31:24 +00:00
sf2: suport $alu gate and ARI1 implementation
This commit is contained in:
parent
13ccdd032d
commit
c25f3ff3df
2 changed files with 65 additions and 2 deletions
|
@ -152,7 +152,22 @@ module SLE (
|
|||
assign Q = LAT ? q_latch : q_ff;
|
||||
endmodule
|
||||
|
||||
// module AR1
|
||||
module ARI1 (
|
||||
input A, B, C, D, FCI,
|
||||
output Y, S, FCO
|
||||
);
|
||||
parameter [19:0] INIT = 20'h0;
|
||||
wire [2:0] Fsel = {D, C, B};
|
||||
wire F0 = INIT[Fsel];
|
||||
wire F1 = INIT[8 + Fsel];
|
||||
wire Yout = A ? F1 : F0;
|
||||
assign Y = Yout;
|
||||
wire S = FCI ^ Yout;
|
||||
wire G = INIT[16] ? (INIT[17] ? F1 : F0) : INIT[17];
|
||||
wire P = INIT[19] ? 1'b1 : (INIT[18] ? Yout : 1'b0);
|
||||
assign FCO = P ? FCI : G;
|
||||
endmodule
|
||||
|
||||
// module FCEND_BUFF
|
||||
// module FCINIT_BUFF
|
||||
// module FLASH_FREEZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue