摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <limits.h> namespace abc { // abc: the basic facts about a part 阅读全文
posted @ 2022-12-17 21:10 Fun_with_Words 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 全部666行(不计最后空行),不是只有界面。界面很简陋: b2c5写错了,应为b2b9炮七进七打马。截图不改了。9级就是9秒。没空格的如c3c47也行(7秒)。 源码就一个.cpp: #include <stdio.h> #include <stdlib.h> #include <string.h> 阅读全文
posted @ 2022-12-10 21:24 Fun_with_Words 阅读(320) 评论(0) 推荐(0) 编辑
摘要: In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be u 阅读全文
posted @ 2022-08-17 20:01 Fun_with_Words 阅读(73) 评论(0) 推荐(1) 编辑
摘要: Verilator is the fastest Verilog/SystemVerilog simulator. Verilator is invoked with parameters similar to GCC or Synopsys's VCS. It "Verilates" the sp 阅读全文
posted @ 2022-01-08 09:36 Fun_with_Words 阅读(159) 评论(0) 推荐(1) 编辑
摘要: Algebra (from Arabic: الجبر‎ al-jabr, meaning "reunion of broken parts") is one of the broad areas of mathematics, together with number theory [数论], g 阅读全文
posted @ 2022-01-01 15:37 Fun_with_Words 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 如题,x是32位unsigned integer. 有Quake公式,(n+1)**2 - n**2 = 2n + 1, 即1+3=4, 4+5=9, 9+7=16 ... [说错了:Babbage difference and Quake's Fast Inverse Square Root - 阅读全文
posted @ 2021-12-31 17:18 Fun_with_Words 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 module cpu(input reset, clk, input[0:55] rom); 2 reg[7:0] i; // instruction 3 reg[4:0] rf[2], pc; // register file and program counter 4 always @(re 阅读全文
posted @ 2021-12-25 00:59 Fun_with_Words 阅读(63) 评论(0) 推荐(1) 编辑
摘要: https://files.cnblogs.com/files/blogs/714801/iverilog-12.0-windows.7z 5,536KB 不带GTKWave. 玩玩在console看01就行。还有$dumpvars和$monitor呢。 Icarus Verilog is avai 阅读全文
posted @ 2021-12-20 14:05 Fun_with_Words 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 6.111 Fall 2017 (mit.edu) MIT的网站,有不少资料可供下载。 阅读全文
posted @ 2021-12-20 13:32 Fun_with_Words 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 24行Verilog写了个电脑:-) 博客园 《从美国1890年人口普查到IBM公司的崛起——浅谈机械式计算机的历史贡献》《“分析计算机”的三种基本设备与通用计算机体系结构的源流》。 The Punched Card Tabulator 下面是穿越小说《临高启明》中的片段[在原文里查找 命题 ]: 阅读全文
posted @ 2021-12-15 13:52 Fun_with_Words 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 问题:三扇门,只有一扇门后面有奖品。你随便选择了一扇门。然后主持人打开了另一扇门,里面是空的。他问你"换不换?" 换还是不换的中奖率高?答案:换的中奖率是2/3,不换的中奖率是1/3。注意:主持人必定打开空门。他知道哪扇门有奖品。他不会打开你选择的门。 如果选择不换,即忽略主持人,中奖率是1/3。如 阅读全文
posted @ 2021-12-05 10:25 Fun_with_Words 阅读(381) 评论(0) 推荐(0) 编辑
摘要: // https://stackoverflow.com/questions/41181004/bitwise-xor-operator-to-find-missing-unique-id public int findUniqueDeliveryId(int[] deliveryIds) { in 阅读全文
posted @ 2021-11-30 19:24 Fun_with_Words 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Write-ahead logging Algorithms for Recovery and Isolation Exploiting Semantics - Detailed Pedia ...Create log records of the form (Sequence Number, Tr 阅读全文
posted @ 2023-01-17 09:15 Fun_with_Words 阅读(27) 评论(0) 推荐(0) 编辑









 张牌。