-
Notifications
You must be signed in to change notification settings - Fork 0
/
POSMachine.v.bak
52 lines (47 loc) · 1.27 KB
/
POSMachine.v.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module POSMachine(clk);
input clk;
reg [2:0] bananaCount;
reg [2:0] potatoCount;
reg [2:0] tomatoCount;
reg [2:0] peachCount;
reg [2:0] appleCount;
reg [2:0] pineappleCount;
reg [2:0] orangeCount;
reg [2:0] mandarinCount;
reg [2:0] cherryCount;
reg [2:0] grapeCount;
reg [2:0] pearCount;
reg [2:0] cucumberCount;
// Item Barcode Numbers
parameter bananaId = 'd3124;
parameter potatoId = 'd4132;
parameter tomatoId = 'd4133;
parameter peachId = 'd3121;
parameter appleId = 'd3133;
parameter pineappleId = 'd3214;
parameter orangeId = 'd1111;
parameter mandarinId = 'd2222;
parameter cherryId = 'd3333;
parameter grapeId = 'd4444;
parameter pearId = 'd1122;
parameter cucumberId = 'd3344;
// Item Predefined Prices (in Kurus 0.01₺ = 1)
parameter bananaPrice = 'd250;
parameter potatoPrice = 'd50 ;
parameter tomatoPrice = 'd75;
parameter peachPrice = 'd200;
parameter applePrice = 'd100;
parameter pineapplePrice = 'd995;
parameter orangePrice = 'd450;
parameter mandarinPrice = 'd300;
parameter cherryPrice = 'd400;
parameter grapePrice = 'd600;
parameter pearPrice = 'd500;
parameter cucumberPrice = 'd150;
parameter maxItemTypeInCart= 'd6;
parameter maxItemCountOfOneType = 'd4;
initial begin
end
always @(posedge clock) begin
end
endmodule